views:

13

answers:

0

Hi,

I need to filter what items from a collection object that I want to show in a DataGridView. It may be; ObjectModel.Collection, a BindingList or simply a List. I may use a BindingSource between the object and the DataGridView if that's an advantage.

What different options do I have for filtering, while still maintaining two-way binding? I seen there is a BindingSource.Filter property, but this seems to require that I bind to an object implementing IBindingListView. Which my business objects do not.

Is there any way I can utilized some intermediate type of "listView" (supporting filtering) that keeps the 2-way binding between the DataGridView and the business object? Or are there other simpler ways to do this?

If I use a DataTable, will that create a new list and hence break the binding, or how does this work?