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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the caption text in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: April 21, 2015 |
Last Revised Date: February 13, 2020

Change the caption text

You can change the caption text by setting the TopLevelGroupOptions.CaptionText property value as some desired text. You can also change the caption text of the nested tables by using the NestedTableGroupOptions.CaptionText property.

C#

int count = this.gridGroupingControl1.TableModel.RowCount;
//Setting the CaptionText for the GridGroupingControl
this.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "This Parent table has {RecordCount} records";
//To change the Caption text of Nested Child tablethis.gridGroupingControl1.NestedTableGroupOptions.CaptionText = "Nested Table";

VB

Dim count As Integer = Me.gridGroupingControl1.TableModel.RowCount
'Setting the CaptionText for the GridGroupingControl
Me.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "This Parent table has {RecordCount} records"
'To change the Caption text of Nested Child tableMe.gridGroupingControl1.NestedTableGroupOptions.CaptionText = "Nested Table"

The following screenshot displays the modified caption text for the Grid.

Show change the caption text for the grid

Figure 1:  Modified caption text for the Grid

Note:

The ‘RecordCount’ is a token that is used to get the record count for the table.

Samples:

C#: ChangeCaptionTextForGGC

VB:  ChangeCaptionTextForGGC

Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/grouping#groupcaptionsection

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile