DataTable view without deleted rows

G

Guest

Is it possible to get a view of a DataTable that contains all the rows
except those that have been deleted?

I guess I could easily loop through the DataTable, but is the a better way
to do this?

Thanks
Steve
 
N

NuTcAsE

DataView view = new DataView (table);
view.RowStateFilter = DataViewRowState.Unchanged |
DataViewRowState.Added | DataViewRowState.ModifiedCurrent;

That should give you all unchanged, added and modifed (current values)
rows.

NuTcAsE
 

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