I have a situation where filtering is not working correctly. I have a gridview where columns are generated at runtime. This is done so we can decorate our classes with custom attributes to specify column headers, data formats etc. and can generate a grid that displays in the appropriate way based on the attributes of the given class.
In one specific scenario there is an int property that need to be displayed as a timespan. The transformation from int to timespan is done using a ValueConverter. the data displays fine. I don't want to have to add an extra property to the class in question that returns a timespan conversion of the int in question.
When filtering, the list of distinct values displayed matches those values displayed in the grid but the values that the user enters to filter the grid have to match the raw data. Very confusing! I am aware that the filtering engine only works on raw data when using formatting, but should this the case when using a converter?
Is there a simple way to change the filter expression used for an individual column? I have seen a couple of forum posts but they seem to be excessively complex and not quite what I want. I would rather not create a new filtering control for a specific column.
Thanks in advance.
In one specific scenario there is an int property that need to be displayed as a timespan. The transformation from int to timespan is done using a ValueConverter. the data displays fine. I don't want to have to add an extra property to the class in question that returns a timespan conversion of the int in question.
When filtering, the list of distinct values displayed matches those values displayed in the grid but the values that the user enters to filter the grid have to match the raw data. Very confusing! I am aware that the filtering engine only works on raw data when using formatting, but should this the case when using a converter?
Is there a simple way to change the filter expression used for an individual column? I have seen a couple of forum posts but they seem to be excessively complex and not quite what I want. I would rather not create a new filtering control for a specific column.
Thanks in advance.