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 name header programmatically?


Hi, 
How to change column name header programmatically?


I can do that with regular LS grid using examples I found on web (it uses AddHandler...)(I'm not experienced  programmer but I can handle trough code) but in general I don't see very good documentations for your controls.

Hope you can help me with this. 
Is there any more detailed documentations for this and other LS controls? 

Best Reagrds,
Mufid Himzanija

1 Reply

JS Jayapradha S Syncfusion Team January 6, 2015 05:07 AM UTC

Hi Mufid,

Thank you for using Syncfusion products.

We have analyzed your query and you can change the column header text by using the below code snippet:

Code Snippet:

sfGrid.Columns[2].HeaderText = "SecondColumn";

We have prepared a sample for your requirement and we have changed the column header text when sort column description is changed.

Please find the sample from the following location:

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/117876/SummariesDemo-812953403.zip

Regarding query: Is there any more detailed documentations for this and other LS controls? 

We have already have a UG documentation for Light Switch and we will do some more improvements in our upcoming release.

Please let us know if you require further assistance.

Regards,

Jayapradha



Loader.
Live Chat Icon For mobile
Up arrow icon