Hi,
what is the correct way to set culture and language?
I have a german Windows and set the language and culture to en-Us:
DataGrid.Dispatcher.Thread.CurrentCulture = new System.Globalization.CultureInfo("en-US", false); DataGrid.Language = XmlLanguage.GetLanguage("en-US");
But in the UI the grid shows the hint in the group section in german:
But after grouping the group headers are in english ("items"):
What's wrong?
Best regards,
cew3
I set the language using:
myDataGrid.Language = XmlLanguage.GetLanguage(System.Windows.Application.Current.Dispatcher.Thread.CurrentUICulture.IetfLanguageTag);
Hope that helps.
Hi
with which event do you get the grid to set the culture ? It works for all grids except the current active grid.
In that grid, the language did not changed. Do you have an idea ?
Thanks
Martin
Great, thanks for your help!
Best
Hi cew3,
Apart from CurrentCulture you need to set the CurrentUICulture to "en-US" as well.
Hope this helps.