VagabondSW Posted September 12, 2005 Posted September 12, 2005 DataGrid1 will display rows from tables in a DataSet. When the DataSet is created, a DataViewManager is also created. Let's say two tables are added to the DataSet, DataTable Summary and DataTable Support. The DataGrid1.DataSource property is set to the DataViewManager oject, but I'm 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 can't 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? Quote "Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.