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

Column header text in the designer

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

3 Replies

AD Administrator Syncfusion Team February 23, 2004 07:16 AM

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.


RF Rasmus Fynbo April 20, 2006 07:58 AM

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.


AD Administrator Syncfusion Team April 21, 2006 02:18 AM

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.

Loader.
Live Chat Icon For mobile
Up arrow icon