Field Old Value

  • Thread starter Thread starter Rodolfo
  • Start date Start date
R

Rodolfo

I'm trying to create a procedure that only updates the changed columns in a
dataset, how can I do that, I know the RowState property but I want to
identify specific fields inside the row.

TIA
 
Hi Rodolfo,

You might use one of DataRow.this[] overloads that take DataRowVersion
parameter as input and check DataRowVersion.Original version of value.
 
Rodolfo,
When you index into a column from a row you can use a second index
of type DataRowVersion, just compare .Original with .Current

ds.Tables[0].Rows[1][2,DataRowVersion.Original]

Cecil Howell
MCSD, MCAD.Net, MCT
www.ceciltech.com
 
Back
Top