DataTable view without deleted rows

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top