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 modify header text in gridcontrol

Thread ID:





7281 Sep 18,2003 09:57 AM UTC Sep 18,2003 10:48 AM UTC WinForms 1
Tags: GridControl
Jérôme Le Coutaller
Asked On September 18, 2003 09:57 AM UTC

How can I modify the header text for each column of my gridcontrol (not in databoundgrid) ?

Administrator [Syncfusion]
Replied On September 18, 2003 10:48 AM UTC

Hi jérôme, The header cell text can be can be modified just like any other cell.You get at their styles by indexing the GridControl. Here is the code to set the header text of the Third column. Please note that the rowindex is set to 0 for setting the column header text. GridControl1[0,3].Text = "Header Text 3" Hope that helps. Regards, Stephen.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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
Live Chat Icon