Hello,
I am working on a windows application(c#.net). I have one form which contains some controls like textbox, labels and also UltraGrid. I want to have localization, when the resource file is created it contains localization details for all controls except UltraGrid, how to have localization for UltraGrid Columns.
Thanks in Advance.
Sriram
Hi Sriram,
You can do this using the ResourceCustomizer class. See the Infragistics documentation on ResourceCustomizer for details.
What about when your schema does not exist until run time? I have a generic from with a grid that gets reused for multiple queries. We never know what the schema will be loaded into the grid until the data source is set. Is the best way to localize it just to loop through every column header and looping through all existing language resource words,
Anomoly said:Is the best way to localize it just to loop through every column header and looping through all existing language resource words,
Not sure what you mean by "all existing language resource words".
But I don't see any way to do this other than looping through the columns if you don't know what the data structure is at design-time.
How else could it work?
Typically, localization is done via resource files where you identify a particular string with a name. So what you would do is load a particular resource file into memory based on the Current Culture and then fill in the grid column headers from the currently-loaded resources.