Changing DataGrid cell

  • Thread starter Thread starter Ofer B.
  • Start date Start date
O

Ofer B.

Hi

When the user is changing cells value, how can I know the original value
(befor the user change the value in the cell) and the new value.

My grid is bound to data table, and I have 2 events "RowChanging", and
"RowChanged", but this 2 return the new value and not the original. I try to
get the value by using "e.Row[ColumnNumber]"

thanks
ofer
 
There is an override of the DataRow which allows you to get the original
value before the change:-

e.Row[ColumnNumber,DataRowVersion.Original]

Peter
 
Back
Top