How to get dataset row state?

  • Thread starter Thread starter Fico
  • Start date Start date
Hi,

Get the reference to the instance of the row in question, and then query the
row instance's RowState property.
 
Use the RowState property of the specific table's rows in the dataset.

How to get dataset row state? new/modified/deleted?
 
Hi,

Rowstate applies to individual rows, not datasets. To get the rowstate of a
particular row whose state is modified, use

if (dsHolders.Tables[0].Rows[3].RowState == DataRowState.Modified)

{
// do whatsoever you want
}

Regards
Joyjit
 
Back
Top