AD
Administrator
Syncfusion Team
August 8, 2006 01:38 PM UTC
Hi,
You need to handle the QueryCellStyleInfo event to do this. Below is the code snippet.
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell)
{
Group group = e.TableCellIdentity.DisplayElement.ParentGroup;
if (group.Category != null && group.Name == "Street")
{
e.Style.BackColor = Color.Green;
}
if (group.Category != null && group.Name == "Name")
{
e.Style.BackColor = Color.Red;
}
}
Thanks,
Rajagopal