I have a project which is using a base class (called Job) and two derived classes (Hire & Sales) - which share a lot of properties. When I add a string property to Hire and bind to that column in a gridview - the filtering icon doesn't appear above the column, however it works fine on when I bind to the base class - I've read that perhaps this is because it can't determine the datatype, but it is just a string.
This is a xaml example of two columns, next to each other, the first column displays the filter icon (SiteLocation is held within base class), the second column (SiteLocation1 held in Hire class) doesn't - they both show the correct data.
<
telerik:GridViewDataColumn
Header
=
"Location"
UniqueName
=
"Location"
DataMemberBinding
=
"{Binding ScheduleItemJob.SiteLocation}"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"True"
CellStyle
=
"{StaticResource GridViewCellStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Location1"
UniqueName
=
"Location1"
DataMemberBinding
=
"{Binding ScheduleItemJob.SiteLocation1}"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"True"
CellStyle
=
"{StaticResource GridViewCellStyle}"
/>