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
365
How do I localize bound Grid Headers?
posted

Hello everyone.

I am trying to localize a project using an UltraGrid. We are using Infragistics 11.2.

Visual Studio usually creates the appropriate entries for the .resx file as soon as you mark the form as "Localizable". This is not the case for the UltraGrid, at least not entierly. If I have a column bound to a datasource and leave the properties unchanged, the header is named after the source's property name and so I cannot localize it anymore. If I add a blank to the headers name, the entry in the .resx files is made and I can do the translation. But I guess this is just a work around.

So here's my question: Is there any other way to localize bound column headers?

 

Regards.

Parents
  • 469350
    Suggested Answer
    Offline posted

    If the column.Header.Caption is blank (not set), then the control falls back to displaying the Key.

    I'm not entirely sure what you mean when you say you cannot localize it in this case. Why can't you? If you change the Language on the form to some other language and set the Caption property of the header, the caption will be written to the resx file for the form for that language.

    So I don't think I understand what the problem is.

     

Reply Children