Hi TOO1BEE,
You can achieve this by having a covered cell in the column header that span over two columns. For that, you would have to subscribe to the QueryCoveredRange event and provide the covered range on demand.
Here is the code snippet to have a column header that covers first two columns.
//provide covered range on demand
void gridControl1_QueryCoveredRange(object sender, GridQueryCoveredRangeEventArgs e)
{
if (e.RowIndex == 0)
{
if (e.ColIndex >= 1 && e.ColIndex <= 2)
{
e.Range = GridRangeInfo.Cells(0, 1, 0, 2);
e.Handled = true;
}
}
}
Please refer to this sample:
http://websamples.syncfusion.com/samples/Grid.Windows/F60992/main.htmBest Regards,
Saravanan