Reference Original rows from DataRowViewState.ModifiedCurrent
-
Tuesday, June 17, 2008 7:24 PM
Hi,
I am trying to reference the original records from a ModifiedCurrent RowStateFilter view. I just keep running in circles. Any help or suggestions would be apreciated.
private void Test1()
{
DataTable my_table = new DataTable();
DataView my_dv = new DataView();
my_dv.Table = my_table;
my_dv.RowStateFilter = DataViewRowState.ModifiedCurrent;
foreach (DataRowView my_row in my_dv)
{
string mod = "";
string orig = "";
//do something with modified data
mod = my_row["Col1"].ToString();//do something with original data
orig = ????????
}
}
All Replies
-
Wednesday, June 18, 2008 7:26 PMAnyone familiar with Datatable and Dataviews?
-
Friday, June 20, 2008 7:51 AM
Discussion in Data Platform Development
Or
Discussion in Windows Forms Data Controls and Databinding
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Moderator Friday, May 11, 2012 5:41 AM
-
Friday, May 11, 2012 5:41 AMModerator
This thread was moved into the Off Topic forum. I can move it into a specific forum for you if you want.
Thanks!
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Moderator Friday, May 11, 2012 5:41 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Moderator Friday, May 11, 2012 5:41 AM