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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column Headers

Thread ID:





69564 Nov 1,2007 10:26 PM UTC Nov 1,2007 11:24 PM UTC WinForms 1
Tags: GridControl
Sudharsini Ravikumar
Asked On November 1, 2007 10:26 PM UTC

Hi We are licensed users of Syncfusion. I have a question about cell headers. I would like to let the users set column headers. Is it possible to edit the headers like a text cell? Or what is the best way to do this? I quick reply is appreciated.


haneefm [Syncfusion]
Replied On November 1, 2007 11:24 PM UTC

Hi Sudha,

You can try these code:

gridControl1.BaseStylesMap["Column Header"].StyleInfo.CellType = "TextBox";
gridControl1.BaseStylesMap["Column Header"].StyleInfo.HorizontalAlignment = GridHorizontalAlignment.Left;
gridControl1.BaseStylesMap["Column Header"].StyleInfo.CellAppearance = GridCellAppearance.Raised;
gridControl1.BaseStylesMap["Column Header"].StyleInfo.Borders.All = new GridBorder(GridBorderStyle.Standard, Color.Black);

gridControl1.AllowSelection ^= GridSelectionFlags.Column; //Avoid the Column selection whe editing the columnheader.

Please let me know if this helps.

Best regards,


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