Jess31
asked on
Casting DataGridview / BindingSource / Filter ?
I have a DataGridView that is bound to a BindingSource, and I have a filter set. I need to cast this data to a DataTable. But when I do it it ignores the filter. How can I cast it and have it give me only the data that matches the filter?
Here is how I am casting it now:
dt = CType(DirectCast(Me.DGVSel ectedBooks .DataSourc e, BindingSource).DataSource, DataTable)
Here is how I am casting it now:
dt = CType(DirectCast(Me.DGVSel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.