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
close icon

How to change column header text in parent table.

Hi ,
I am using Gridgrouping control.
I have Parent-Child Relationship in the control.
How to change  column header text in parent table.

Thanks and Regards,
Supriya


1 Reply

NK Neelakandan Kannan Syncfusion Team January 20, 2015 06:01 AM UTC

Hi Supriya,

 

Thank you for your interest in Syncfusion products.

 

If you want to change the header Text for parent table, you can use HeaderText property of particular column. Please make use of below code and please find the attached sample,

 

Code Snippet:

Me.gridGroupingControl1.TableDescriptor.Columns("parentID").HeaderText = "Sample" //Specify your needed column name

Note:

If you want to change the HeaderText for child table or nested table, you can change the column HeaderText using GetTableDescriptor property. Please make use of below code,

 

Me.gridGroupingControl1.TableDescriptor.Columns("parentID").HeaderText = "Sample"
Me.gridGroupingControl1.GetTableDescriptor("MyChildTable").Columns("childID").HeaderText = "Sample"
Me.gridGroupingControl1.GetTableDescriptor("MyGrandChildTable").Columns("GrandChildID").HeaderText = "Sample"

 

Please let me know if you have any concerns.

 

Regards,

Neelakandan


Attachment: Sample_HeaderText_Change_VB_bf3e6b83.zip

Loader.
Live Chat Icon For mobile
Up arrow icon