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.
Unfortunately, activation email could not send to your email. Please try again.

How to modify header text in gridcontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

7281 Sep 18,2003 05:57 AM Sep 18,2003 06:48 AM Windows Forms 1
loading
Tags: GridControl
Jérôme Le Coutaller
Asked On September 18, 2003 05:57 AM

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

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

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.

CONFIRMATION

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.

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.

;