Articles in this section

How to change the appearance of the GroupCaption Row to make it looks like other rows in the Grid?

 

To make the GroupCaption row looks like other rows in the Grid the GroupCaptionCell property which is inside the Appearance of GridGroupingControl has to be accessed and set with different, different values. Please refer the below code snippet which illustrates this:

C#

this.GridGroupingControl1.Appearance.GroupCaptionCell.BackColor = this.GridGroupingControl1.Appearance.RecordFieldCell.BackColor;

this.GridGroupingControl1.Appearance.GroupCaptionCell.Borders.Top = new GridBorder(GridBorderStyle.Standard);

this.GridGroupingControl1.Appearance.GroupCaptionCell.CellType = "Static";

this.GridGroupingControl1.TableOptions.CaptionRowHeight = this.GridGroupingControl1.TableOptions.RecordRowHeight;

VB

Me.GridGroupingControl1.Appearance.GroupCaptionCell.BackColor = Me.GridGroupingControl1.Appearance.RecordFieldCell.BackColor

Me.GridGroupingControl1.Appearance.GroupCaptionCell.Borders.Top = New GridBorder(GridBorderStyle.Standard)

Me.GridGroupingControl1.Appearance.GroupCaptionCell.CellType = "Static"

Me.GridGroupingControl1.TableOptions.CaptionRowHeight = Me.GridGroupingControl1.TableOptions.RecordRowHeight

Sample:

http://help.syncfusion.com/support/samples/kb/Grid.Web/6.1.0.34/GGCaptionRow/CaptionRow.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied