DataView and BindingSource problem

G

Guest

I have noticed the following behavior, which I believe is 'wrong'.
I have a BindingSource that I am using to populate a datagrid, and I am
using a DataView as the BindingSource.DataSource, something like this:

MyDataView = New DataView(MyTable, Filter, SortCol, _
DataViewRowState.CurrentRows)

* at this point in time the view is properly sorted and filtered

MyBindingSource.DataSource = MyDataView

* at this point in time, MyDataView is NO LONGER FILTERED!!!!

Why would the Bindingsource change the underlying definition of the
DataView? This seems wrong to me. I can get around the problem by setting
the filter property of the BindingSource, but it still seems wrong to me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top