BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Group group = record.ParentGroup;
if (group is MyCustomGroup)
((MyCustomGroup) group).HighlightSummary = true;
else if (group is MyCustomChildTable)
((MyCustomChildTable) group).HighlightSummary = true;
In your MyCustomGroup and MyCustomChildTable classes you add a HighlightSummary flag.
A QueryCellInfo overide can look like this:
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el is CaptionRow)
{
bool highlight = false;
Group group = el.ParentGroup;
if (group is MyCustomGroup)
highlight = ((MyCustomGroup) group).HighlightSummary;
else if (group is MyCustomChildTable)
highlight = ((MyCustomChildTable) group).HighlightSummary;
if (highlight && e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell)
{
e.Style.BackColor = Color.Red; // your highlight color
}
}
}
Stefan