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:

Created:

Updated:

Platform:

Replies:

3722 Apr 3,2003 08:10 PM UTC Jul 22,2003 01:46 PM UTC WinForms 5
loading
Tags: GridControl
Paul
Asked On April 3, 2003 08:10 PM UTC

Does any one know if you can change the column headers in design time. ie: the A, B, C given by to default to foo, bar, baz, or what ever custom names you want. I already know how to do it in code but I would like to know if it can be done in design time.

Administrator [Syncfusion]
Replied On April 4, 2003 06:15 AM UTC

You can do this, but you have to make sure that the Column is not included in the grid's AllowSelections property. If you have this flag included, then you cannot just select the column header cell by itself. Instead, clicking the column header selects the entire column. So, first uncheck Column in the AllowSelection prperty of the grid. Then turn off the global mode and click on the cell settings button to set cell properties. Then click the column header and change its Text property, and so on. When you are finished you can reset the Column flag if you want that AllowSelections to include it.

imran
Replied On July 22, 2003 12:07 PM UTC

i am trying to change the text property of the column headers in the design mode. when i switch to interactive mode, i dont seem to find 'cell settings button'. where does this show up ? >Then turn off the global mode and click on the >cell settings button to set cell properties. >Then click the column header and change its >Text property, and so on.

Administrator [Syncfusion]
Replied On July 22, 2003 12:33 PM UTC

Are you using a GridControl? You cannot design cell specific properties for a GridDataBoundGrid. For a GridDataBoundGrid, you need to add GridBoundColumns for eachcolumn, and then set teh HeaderText for each column.

Administrator [Syncfusion]
Replied On July 22, 2003 01:00 PM UTC

yes. i am using GridControl. > Are you using a GridControl? You cannot design cell specific properties for a GridDataBoundGrid. > > For a GridDataBoundGrid, you need to add GridBoundColumns for eachcolumn, and then set teh HeaderText for each column. >

Administrator [Syncfusion]
Replied On July 22, 2003 01:46 PM UTC

To change a column header, 1)toggle the global mode off. 2)Set the grid.AllowSelections property so it does not include Columns. 3)Click the Cell Settings button at top of the propertygrid. 4)Click the header you want to change. 5)Open up the CellSettings node, and change the Text property. 6)Then click off this property onto another property to see teh change in the grid.

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.

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

;