Using DataViewManager and RowFilter with a DataGrid?

VagabondSW

Well-known member
Joined
Feb 19, 2005
Messages
66
DataGrid1 will display rows from tables in a DataSet. When the DataSet is created, a DataViewManager is also created. Lets say two tables are added to the DataSet, DataTable Summary and DataTable Support.

The DataGrid1.DataSource property is set to the DataViewManager oject, but Im having trouble assigning the DataGrid1.DataMember property. The difficulty is the end-user can apply filtering in the form of a DataColumn Expression at any time. Therefore, I need to have access to the RowFilter property at all times.

I cant figure out a way to apply a DataColumn.Expression string to a RowFilter while the DataGrid.DataSource is assigned to a DataViewManager.

Is the solution to simply use a DataView, instead of a DataViewManager, as the DataSource? Does re-assigning the DataSource from one view to another (Summary, Support) have any consequences? Is there a way to do this using a DataViewManager or some other way?
 
Back
Top