PC Review


Reply
Thread Tools Rate Thread

DataTable view without deleted rows

 
 
=?Utf-8?B?U3RldmUgTm9ybWFu?=
Guest
Posts: n/a
 
      2nd Feb 2005

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
 
Reply With Quote
 
 
 
 
NuTcAsE
Guest
Posts: n/a
 
      2nd Feb 2005
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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i best search a DataTable if some rows has been deleted. Tony Johansson Microsoft C# .NET 10 11th May 2009 02:58 AM
How do i best search a DataTable if some rows has been deleted. Tony Johansson Microsoft C# .NET 0 10th May 2009 04:14 PM
Working with DataTable Deleted Rows =?Utf-8?B?cmFuZHkxMjAw?= Microsoft C# .NET 4 27th Jul 2007 03:00 PM
Get deleted rows from a datatable Andrea Caldarone Microsoft ADO .NET 2 24th Jan 2007 01:57 PM
Adding deleted rows back to a DataTable Fardreamer Microsoft ADO .NET 11 25th Oct 2005 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 PM.