The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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.
RFRasmus FynboApril 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.
ADAdministrator 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.