Gets or sets the Style used to render the cell in the grouped header row.
[Visual Basic]
Public Property GroupHeaderStyle As C1.Win.C1TrueDBGrid.Style
[C#]
public C1.Win.C1TrueDBGrid.Style GroupHeaderStyle {get;set;}
[Delphi]
public property GroupHeaderStyle: C1.Win.C1TrueDBGrid.Style read get_GroupHeaderStyle write set_GroupHeaderStyle;
Example
The following code sets the foreground color of the first column in the first split to blue and the background color to gold when the column is dragged to the grouping area:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).GroupHeaderStyle.ForeColor = Color.Blue
Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).GroupHeaderStyle.BackColor = Color.Gold
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns[0].GroupHeaderStyle.ForeColor = Color.Blue;
this.c1TrueDBGrid1.Splits[0].DisplayColumns[0].GroupHeaderStyle.BackColor = Color.Gold;
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].GroupHeaderStyle.ForeColor := Color.Blue;
Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].GroupHeaderStyle.BackColor := Color.Gold;
See Also
C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |