>Hi Venkat,
Thanks for your interest in Syncfusion Products.
You can merge columns in grid and make it behave like a cell single cell with a headertext by handling the TableModel.QueryCoveredRange event of the GridGroupingControl. Below is the code snippet.
void TableModel_QueryCoveredRange(object sender, GridQueryCoveredRangeEventArgs e)
{
Element el = this.gridGroupingControl1.TableModel.GetDisplayElementAt(e.RowIndex);
if (el != null && el.Kind == DisplayElementKind.ColumnHeader)
{
int lastCol = this.gridGroupingControl1.TableDescriptor.VisibleColumns.Count;
e.Range = GridRangeInfo.Cells(e.RowIndex, 1, e.RowIndex, lastCol);
e.Handled = true;
}
}
Here is a sample demonstrating this
http://websamples.syncfusion.com/samples/Grid.Windows/F68023/main.htmLet me know if you have any other questions.
Regards,
Rajagopal
thank you, if i want to merge from the middle columnsheaders of the grid then?