Thursday, June 26, 2008

How to check whether the datatable had altered or nor using c#.net?

static bool HasDataTableChanged(DataTable TheDataTable)
{
foreach (DataRow Row in TheDataTable.Rows)
if (Row.RowState != DataRowState.Unchanged)
return true;

return false;
}

No comments:

 
Feedback Form