I have a RadGridView populated by a collection of objects. The first column uses a converter for the DataMemberBinding like so:
The converter returns a string based on the typeof(object) in the collection. Since there is no property on the object I can name for the SortMemberPath to sort from, how then can I sort this GridViewDataColumn based on the string returned by the converter? Do I have to use the "Sorting" handler and custom sort all of the columns? Thanks.
<
telerik:GridViewDataColumn
Name
=
"NotificationTypeGridViewDataColumn"
Header
=
"Type"
MinWidth
=
"100"
Width
=
"100"
IsSortable
=
"True"
SortingState
=
"None"
DataMemberBinding
=
"{Binding Converter={StaticResource notificationTypeConverter}}"
>
</
telerik:GridViewDataColumn
>
The converter returns a string based on the typeof(object) in the collection. Since there is no property on the object I can name for the SortMemberPath to sort from, how then can I sort this GridViewDataColumn based on the string returned by the converter? Do I have to use the "Sorting" handler and custom sort all of the columns? Thanks.