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.
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.
Hi Mike
Thank you for your response.I'll try to explain using screenshots.
Let's take the Colum "Instanz" for instance. Its key is "Instanz" and so is its caption. This is the default setting I suppose.
But if we look at the .resx file it does not appear in there:This is not the full excerpt from the .resx file, but please believe me ;-)
If I now rename the caption of the column to let's say "Instanz " (With a blank at the end) it magically appears in the .resx file:
I hope this clears up my slightly confusing way of describing the problem.
Kind regards.
Have you been able to work this out?
Hi,
Okay. I am following everything you are saying here. But why does this matter?
Typically, what you would do to localize the caption is change the Language property on the form and then simply set the header caption. This would add the caption to the resx file for that language. So what's stopping you from doing that? Are you saying this does not work?