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
165
Bizarre problem with Grid control (when localizable)
posted

My grid is bound to a table and it has k columns. 
I have provided user-friendly column names (using UltraWinGrid Designer [Band and Column Settings -> Band[0] - '...' -> Columns, I have selected each column and then changed the Caption in its Header property].

I have also re-ordered and hidden some columns (using Band and Column Settings -> Band[0] - '...' -> Column Arrangement Overview -> Column Arrangement Designer).

It all works fine

UNTIL

I make the form Localizable.  When I change the language, I repeat the above (column relabeling) by changing the Caption (in Header property) of each column to the same name as in English but appending (fr).  For example, a column with "Name" in English would be "Name (fr)" in French (just so I get these labels in my resource file). When I change back to English, my column labels are completely messed up.  For example, out of k columns, the last several would be in French (all column captions would have "(fr)" appended to them) and some column captions would be re-ordered.

My question, has anybody had a similar problem, and if so, how do I go around it? 
(I have tried many several times to correct the labelling but it did not work).

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    In my experience the Visual Studio form designer does not handle localization very well when dealing with collections, such as the columns collection. You can get very similar behavior using the Inbox TreeView control and trynig to localize the nodes of a tree. 

    Once you remove, add, or re-order the collection, the designer simply can't keep track of which items match up to which text any more.

    My advice would be to do the localization at run-time in code, rather than through the designer.

Children
No Data