Hi TSK,
> Does anyone happen to know why DisplayMember is not a localizable property in the designer (at least in VS2005)?
In my opinion, only those properties directly related to UI are localizable, e.g.the Text property of a Label or Button.Apparently, the DataSource or DisplayMember property is not directly related to UI, so they are not localizable.
A solution to your problem is to add a field in the DB table to distinguish different cultures. For example, there's a States table in DB. Its definition is as follows:
ID int
Name varchar(50)
Culture varchar(10)
Store the culture/language name in the Culture field. For example:
ID Name Culture
1 aaa en-US
2aaa1en-ZW
3 aaa2 en-GB
Query the DB table according to the current UI culture name when the application starts(FYI, calltheThread.CurrentThread.CurrentUICulture.Name to get the current UI culture name).The DataSource and the DisplayMemeber properties remain the same.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu