DataViewManager - Apply DataView.RowFilter

T

tomb

How to set the RowFilter property of a DataViewManager (dvm)
without to bind every time the dvm to control?

If I bind to a DataGrid (G)

G.DataSource = dvm;
G.DataMember = tablename (that belongs to DataSet)

and then I set ds.Tables[tablename].DefaultView.RowFilter = "new filter"
I don't see the changes while if I bind in this way the DataGrid

G.DataSource = DataView (dv)

and I set RowFilter property I see the new filter applied.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top