hi, i have an dynamic created wingrid, which has aprox. 10 columns.i have now saved the configuration with
.DisplayLayout.Save
when i start my form, i load the current configuration with
.DisplayLayout.Load
(after i have created the grid)but when i for example have a column which is calledPLZ (Zipcode)i create the grid , and save the configuration.later in the developmentprocess i call the column instead of PLZPostleitzahlnow when i load the saved configuration i have the caption of the column still PLZ instead of Postleitzahl.How can i fix this?
Hi,
I'm not sure I understand what you mean.
martin2004 said:later in the developmentprocess i call the column instead of PLZPostleitzahl
What exactly do you mean by this? Are you changing the data source so that the column has a different name? Or are you changing the column caption?
The caption is stored in the Layout. So if you load the layout, it will load up the original caption and overwrite any change you made in the designer. So you would have to change the caption in code, after the layout is loaded. Or... don't load the layout and save a new one with the new caption.
Did that fix your issue?
Yes,
>it will load up the original caption and overwrite any change you made in the designer. So you would have to change the caption in codei have now saved the current configuration under another name...
so it will load the correct config.Best regards