Hi Ravi,
Thanks for your interest in Syncfusion product.
You can apply different back colors to the different groups. Please handle QueryCellStyleInfo event and you can set the color by using e.Style.BackColor property. Please refer to the following code snippet
this.gridGroupingControl1.QueryCellStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell && e.TableCellIdentity.GroupedColumn != null)
{
if (e.TableCellIdentity.GroupedColumn.Name == "Col1")
e.Style.BackColor = Color.Green;
else if (e.TableCellIdentity.GroupedColumn.Name == "Col2")
e.Style.BackColor = Color.Pink;
else
e.Style.BackColor = Color.Red;
e.Style.Themed = false;
}
}
Please refer to the attached sample that demonstrates this completely.
http://websamples.syncfusion.com/samples/Grid.Windows/F68087/main.htmPlease let me know if you have any questions.
Regards,
Nagaraj