Presetting a filter on a column

Dec 11, 2013 at 6: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?

Thanks.
Coordinator
Dec 11, 2013 at 6:31 PM
What is your underlying datasource?
Dec 11, 2013 at 6: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.
Coordinator
Dec 11, 2013 at 6:40 PM
Hi,

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

Regards,
bpoojary
Coordinator
Dec 12, 2013 at 6:03 PM
Hi,

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.

Regards,
bpoojary