Is it possible to clear the value of the DataRowState ?

hi all.

I have a row in a table which get DataRowState either modified or added. Is it possible to clear this DataRowState after i have tested on it

if (datasetCustomer.HasChanges(DataRowState.Modified))
{
//do something.

//Clear the datarowstate so the above test does not hit...

}

Thanks.

Lars E.




Answer this question

Is it possible to clear the value of the DataRowState ?

  • Chad Campbell

    Hi,

    you can set DataRow's AcceptChanges() to set row's RowState to Unchanged.

    Andrej



  • Is it possible to clear the value of the DataRowState ?