Home Forums WPF controls Xceed DataGrid for WPF Columns in DataTemplates always sorted by Alphabetic

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #26694 |

    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)

    Xceed Support
    Post count: 5658

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.