This project is read-only.

Presetting a filter on a column

Dec 11, 2013 at 7:12 PM
I have a column in a collection of row data that may or may not have items that have a status of "new" in it. In most cases, my users do not want to see those items. In the rarer case, though, the user would like to see those items.

From my standpoint, I would rather not filter the "New" items out of the collection before I set the ItemsSource property of the ExtendedDataGrid. I would prefer to preset a filter for the "Status" column that selects items of all the other possible values for the status field. That way, if there are any "New" items in the collection, the user would then only have to change the filter on the status column to show those new items. Is there a way to do this?

Dec 11, 2013 at 7:31 PM
What is your underlying datasource?
Dec 11, 2013 at 7:39 PM
It is a List<T> where T is a custom class called "Output". Output.Status is the property where the value is an enum.
Dec 11, 2013 at 7:40 PM

I will work on it, do expect my reply tomorrow around same time.
Its little late here now.

Dec 12, 2013 at 7:03 PM

You can use datatable as your datasource, and assign dataTable.DefaultView.RowFilter in such a way that it dosent show you new values.
And rest will follow as it is.

If you are still not happy let me know.