A place for Sharepoint and rantings
Accessing Deleted Rows in a ADO.NET DataSet
Found this nugget in the .net247 with a link to the MS site, google didnt list it
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconrowstates.asp
In a nutshell :
switch(m_objDataTable.Rows[i].RowState)
{
case DataRowState.Deleted:
this.SettingsManager.RemoveAdminSetting(m_objDataTable.Rows[i]["UserId",DataRowVersion.Original].ToString());
break;
case DataRowState.Added:
strKey=m_objDataTable.Rows[i]["UserId"].ToString();
strVal=m_objDataTable.Rows[i]["UserName"].ToString();
this.SettingsManager.SetAdminSetting(strKey, strVal);
break;
}
| Print article | This entry was posted by Binaryjam on June 10, 2004 at 9:23 am, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |