We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Article ID: Published Date: Last Revised Date: Platform: Control:
570 04/30/2011 07/10/2014 ASP.NET Web Forms (Classic) GridGroupingControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon