Hello,
On my C# APP I have several Localizable WinGrids. The view resources files containing, per example, the caption of grid's header changes everytime that I change my view. And that's my problem...
The column keys changes but the resource stays the same so there are diffrent captions for the same column deppending of the culture.
How can i solve my probem?
Thank you in advance.
Best regards,
Maria
Hello ,
If in your resource files continues localization strings for your predefined UltraGrid columns , it is expected when you change culture captions to be transated with values from your resx file for the current culture.
http://msdn.microsoft.com/en-us/library/y99d1cd3%28v=vs.71%29.aspx
If you do not what this to happen, remove your localization string from your resources files.
Please let me know if you have any further questions or if I am missing something.
I'm not sure that you understood my problem.
On resources files, the column keys are dynamically. So, everytime that I open my Design View, resources files are updated.
The problem it that only column keys are updated but tehere caption not. So, the resources files are outdated.
How can I solve my problem?
Thank you.
Thank you for the provided simple. I was able to reproduce your issue with Infragistics 10.3 RTM and the latest service release. After that I have tested this with Infragistics 13.1 and I was not able to reproduce this anymore, please see attached video. So it seem that this was an issue in version 10.3 and in the latest version 13.1 this issue is fixed, and what you could do is to upgrade to Infragistics 13.1.
Please let me know if you have any further questions.
I've already saw the video you show. Thank you!!
Can you please attach to your reply the final version of MyGrid.rescx and MyGrid.en-US.rescx files?
Here is the required files.
I hope that this will helps you.
Hi,
As far as I concern the problem persists. If you look at the resources files you gave me it's easier to understand.
On MyGrid2.resx file, the column which header is "Doente" has the key: ultraGridColumn2.
"<data name="ultraGridColumn2.Header.Caption" xml:space="preserve">
<value>Doente</value>
</data>"
On the other hand, the key ultraGridColumn2 does not exist on MyGrid2.en-US.resx. Instead the column which header is "Doente" has the key ultraGridColumn7.
So, If I change the header caption on MyGrid2.en-US.resx file, it will be impossible to show the en-US header.
I haven't changed anything in yours solution, except changing the version of Imagistics, which means that I haven't changed your resx files, and I haven't made any changes on the interface via designer or changed Designer.cs. The explanation for your doubts is the following: Resource's strings for the languages different of the default, are generate only for the components which were changed under the new language. To illustrate this I have captured a small video where I do not use any Infragistics components. As you can see from the video, in af.resx there is a record for lable1, because only this component was changed under this language, and record for button1 is missing, because it was not changed under this language. So in your scenario it seems that you haven’t modified captions for all of the columns of ultragrid under en-US, and that’s why in MyGrid2.en-US.resx key for ultraGridColumn2 is missing, since it wasn’t been changed under en-US. If you change caption of ultraGridColumn2 under en-US, you should have a key for this column in MyGrid2.en-US.resx. But you should keep in mind that in Infragistics 10.3 there were an issue about localization, and you should upgrade to the Infragistics 13.1 in order everything works properly.
Good morning,
I saw the sample that you send and I understood that the problem doesn't occur when we need to use other infragistcs components. But, in my case, I want to use a WinGrid. Can you send me a video using Wingrid's columns where I can see this working ?