Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
DisplayLayout.Load issue
posted

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 called
PLZ (Zipcode)
i create the grid , and save the configuration.

later in the developmentprocess i call the column instead of PLZ
Postleitzahl

now when i load the saved configuration i have the caption of the column still PLZ instead of Postleitzahl.

How can i fix this?

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I'm not sure I understand what you mean.

    martin2004 said:
    later in the developmentprocess i call the column instead of PLZ
    Postleitzahl

    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.

Reply Children
No Data