Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

"Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...