Articles in this section
Category / Section

How to change or edit the column header text in a WinForms GridGroupingControl?

1 min read

Change the column header

To change the column header text in a GridGroupingControl, you can use the HeaderText property of TableDescriptor.

C#

//Using Column index
this.gridGroupingControl1.TableDescriptor.Columnsa[2].HeaderText="Hello";
//Using Column name
this.gridGroupingControl1.TableDescriptor.Columns["CompanyName”].HeaderText="Hello";

VB

'Using Column index
Me.gridGroupingControl1.TableDescriptor.Columns(2).HeaderText="Hello"
'Using Column Name
Me.gridGroupingControl1.TableDescriptor.Columns("CompanyName”).HeaderText="Hello"

After applying the properties, the header text is displayed as follows.

Show the changing header text

Figure 1: Changing the header text

Samples:

C#: HeaderText

VB: HeaderText

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