Home › Forums › WPF controls › Xceed DataGrid for WPF › Columns in DataTemplates always sorted by Alphabetic
1. The grid is binded to a simple DataTable with prices/quantities etc. Now if click the columns in grid, they are sorted by numerical values.
2. Columns are then set with DataTemplate that use TextBlock and custom converter, so cell content are showing friendly format #,##0, 0.##% etc.
3. now for all those customized columns, the grid sort them alphabeticly…
What am I missing here? I spent an hour searching through this forum couldnt find anything helpful. Anyone please shed some light?
Imported from legacy forums. Posted by Sen (had 2661 views)
Try using the Xceed.Wpf.Controls.NumericTextBox, which will consider the data as numeric, rather than the TextBlock, which considers its data as strings.
Imported from legacy forums. Posted by Jenny [Xceed] (had 4150 views)