very strange rowstate issue

  • Thread starter Thread starter Erik Frey
  • Start date Start date
E

Erik Frey

Hi,

It would be difficult to post code (large project), but I will describe
what I am seeing and hope that someone knows what's going on here. I have a
databound dataset (winforms), and after the user changes the value of a
bound control (in this case, updates the value from 1 to 8) I'm seeing the
following in the watch:

dr["MyColumn"] ---> 8
dr["MyColumn", DataRowVersion.Original] ---> 1
dr.RowState ---> Unchanged

Is it possible for an item in a DataRow to be updated and the RowState
is still Unchanged?? How is this happening? Is this a bug?

Very confused,

Erik
 
Hi Erik,

Yes, interesting.
This is because BeginEdit is called on row and the RowState won't change
until EndEdit is called (changes are commited).
This is a feature of CurrencyManager.
 
Back
Top