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.
Hi Maria,
What version of the controls are you using? This sounds like an old bug that was fixed a while back.
I am using version 10.3. Is that a problem?
Hello,
On the following link you could learn How to get latest SR:
http://ko.infragistics.com/community/forums/t/29398.aspx
Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
I've tried to test my sample with new Infragistics version but I could not do that wothout installing the new version. But, I cannot uninstall the one I have so I will ask you if you could test it for me. Is that ok?
I need to attach my Sample.csproj to this forum but I dont know how to do that. Can you give me a explanation?
MAria
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 ?
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.
Please let me know if you have any further questions.
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.
Here is the required files.
I hope that this will helps you.
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?