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.
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.