How to change caption text in Windows Forms GridGroupingControl
19 Aug 20261 minute to read
This can be done using the code below.
// Sets the caption text.
// {TableName} - Displays the CaptionSection.ParentTableDescriptor.Name
//{CategoryName} - Displays the CaptionSection.ParentGroup.Name
//{Category} - Displays the CaptionSection.ParentGroup.Category
//{RecordCount} - Displays the CaptionSection.ParentGroup.GetFilteredRecordCount()
this.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "TableName is {TableName} : {Category} : {RecordCount}";'Sets the caption text.
' {TableName} - Displays the CaptionSection.ParentTableDescriptor.Name
'{CategoryName} - Displays the CaptionSection.ParentGroup.Name
'{Category} - Displays the CaptionSection.ParentGroup.Category
'{RecordCount} - Displays the CaptionSection.ParentGroup.GetFilteredRecordCount()
Me.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "TableName is {TableName} : {Category} : {RecordCount}"