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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top