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.
Syncfusion Feedback

Column header text in the designer

Thread ID:

Created:

Updated:

Platform:

Replies:

11069 Feb 23,2004 12:07 PM UTC Apr 21,2006 07:18 AM UTC Windows Forms 3
loading
Tags: GridControl
Andy Barnhart
Asked On February 23, 2004 12:07 PM UTC

I feel almost embarrased to ask, since we must be overlooking something obvious, but... How do you set the column header text in the designer? We use Localizable=True in all our forms and then use the Multilizer product to create translation files from the resource files to allow the international offices to provide translations, so we need to set the header text in the designer. I find lots of examples of doing it in code, but I can''t seem to figure out how to do it in the designer. -Andy

Administrator [Syncfusion]
Replied On February 23, 2004 12:16 PM UTC

You can set the header text at design time in a GridDataBoundGrid by adding GridBoundColumns to the grid''s GridBoundColumns and setting the HeaderText property in the GridBoundColumn. (Make sure you set the MappingName property of the GridBoundColumn to be the DataTable''s column name otherwise you will not see the dat in the column). You can also set the column headers in a GridControl at design-time. First, set the grid''s AllowSelection property to exclude columns. (You can set this back later if you want to select columns at runtime). Then toggle the Interactive mode by clicking the verb at the bottom of teh grid''s PropertyGrid. Then click the Cell Setting button at the top of the PropertyGrid. Then click the column header on the design surface, and change its Text property in the PropertyGrid.

Rasmus Fynbo
Replied On April 20, 2006 12:58 PM UTC

Hell, even by following you''re explaination I am not able to change the headtext in your designer.. you''ll have to try again, please. Honestly, if changing a headertext in a designer in a commercial product is any harder than doubleclicking on the header and typing you have some serious problems with your usability.. Strangely enough, the tooltip over the header says "Double Click to change header text".. so why doens''t it work?? >You can set the header text at design time in a GridDataBoundGrid by adding GridBoundColumns to the grid''s GridBoundColumns and setting the HeaderText property in the GridBoundColumn. (Make sure you set the MappingName property of the GridBoundColumn to be the DataTable''s column name otherwise you will not see the dat in the column). > > >You can also set the column headers in a GridControl at design-time. First, set the grid''s AllowSelection property to exclude columns. (You can set this back later if you want to select columns at runtime). Then toggle the Interactive mode by clicking the verb at the bottom of teh grid''s PropertyGrid. Then click the Cell Setting button at the top of the PropertyGrid. Then click the column header on the design surface, and change its Text property in the PropertyGrid.

Administrator [Syncfusion]
Replied On April 21, 2006 07:18 AM UTC

Hi Rasmus, I really apologize for the inconvenience caused. We are looking in to this issue. But currently the ColumnHeader name can be set in design time through the Text property in the PropertyGrid under the “Selected Range” tag, after setting the AllowSelection property to exclude Column in the PropertyGrid under “Grid Properties” tag. (in version 4.1) Regards, Calvin.

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

;