I do not believe there's a Windows setting to override this default behavior, but I believe you should be able to achieve the desired result by switching the culture in the Sorting
event to en-US
, for example, (or any other culture where the sorting is applied as expected) and then switch it back in the Sorted
event. Here's what I have in mind:
.grid.Sorting += Grid_Sorting;
.grid.Sorted += Grid_Sorted;
sender, GridViewSortedEventArgs e)
sender, GridViewSortingEventArgs e)
.currentCulture = Thread.CurrentThread.CurrentCulture;
Please let me know whether this would work for you.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.