1. Add a class file
SplitTableHeader(GridViewRow targetHeader, = targetHeader.Cells; strCss = row = col =[,] nameList = RowSpan = ColSpan = ( k = ; k < row; k++ LastFName = ( i = ; i < col; i++ (LastFName == nameList[i, k] && k != row - == bFlag = == TableHeaderCell()); tcl[tcl.Count - ].RowSpan =- ].ColumnSpan =- ].HorizontalAlign =- ].Text = -[] EndColName = LastFName.Split( [] { ( eName TableHeaderCell()); tcl[tcl.Count - ].HorizontalAlign =- ].Text =- ].CssClass = (k != row - tcl[tcl.Count - ].Text = tcl[tcl.Count - ].Text + IsVisible([,] ColumnList, rowIndex, colIndex, (rowIndex != (ColumnList[colIndex, rowIndex - ] == (ColumnList[colIndex, rowIndex].Contains( - GetSpanRowCount([,] ColumnList, row, rowIndex, LastName = RowSpan = ( k = rowIndex; k < row; k++ (ColumnList[colIndex, k] ==++= GetSpanColCount([,] ColumnList, row, col, rowIndex, LastName = ColSpan = ColumnList[colIndex, row - ].Split( [] { = ColSpan == ? ( i = colIndex + ; i < col; i++ (ColumnList[i, rowIndex] ==+= ColumnList[i, row - ].Split( [] { = [,] ConvertList( newHeaders, row, [] ColumnNames = newHeaders.Split( [] { [,] news = Name = ( i = ; i < col; i++[] CurrColNames = ColumnNames[i].ToString().Split( [] { ( k = ; k < row; k++ (CurrColNames.Length - >= (CurrColNames[k].Contains( (CurrColNames.Length != (Name == = news[i, k - =+ ] == == (Name == = news[i, k - == GetRowCount([] ColumnNames = newHeaders.Split( [] { Count = ( name TempCount = name.Split( [] { (TempCount >= GetColCount( newHeaders.Split( [] {
2. Add the following code in the OnRowCreated event.
gvO_RowCreated( (e.Row.RowType === header = =
3 .: