Hi,
i bind an ObservableCollection to a RadGridView.
xaml:
Now i want to sort the GridView
The Problem ist, that the GridViewDataColoumn is a string and the sorting works, but in a wrong way for example:
08.11.2014
09.11.2014
10.10.2014
11.11.2014
The Date 10.10.2014 should be the first one. How can i solve this?
Thanks
Best Regards
rene
i bind an ObservableCollection to a RadGridView.
TaskGridView.ItemsSource = ItemColleciotn;
xaml:
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Mydate, StringFormat=d}"
Width
=
"80"
Header
=
"{Binding Source={StaticResource Lang}, XPath=GrudDatumHeader/@Header}"
x:Name
=
"Beginnlbl"
>
Now i want to sort the GridView
<telerik:RadGridView.SortDescriptors>
<telerik:SortDescriptor Member=
"MyDate"
SortDirection=
"Ascending"
/>
</telerik:RadGridView.SortDescriptors>
The Problem ist, that the GridViewDataColoumn is a string and the sorting works, but in a wrong way for example:
08.11.2014
09.11.2014
10.10.2014
11.11.2014
The Date 10.10.2014 should be the first one. How can i solve this?
Thanks
Best Regards
rene