I have problem with sorting on GridView
I have two number columns (integers) and when I click on the column header to sort it sorts them as string and not numeric values.
.xaml file
<telerik:RadGridView x:Name="gridViewOrders"
ShowGroupPanel="False"
AutoGenerateColumns="False"
CanUserSortColumns="True"
RowIndicatorVisibility="Collapsed"
IsFilteringAllowed="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Order}"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Account}" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Timestamp}"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
cs file
gridViewOrders.ItemsSource = tradesRepo.ListOfPendingOrders;
Any ideas?
Thanks