I make a change in the UI, the UI code detects the change and calls
EndCurrentEdit on the currency manager.
I have added both a RowChanged event handler and a ColumnChanged event
handler in a business object, for testing purposes.
If I use only a RowChanged handler, the dataset HasChanges() method returns
true (from within the event handler).
If I use only a ColumnChanged handler, the dataset HasChanges() method
returns false.
Can somebody please explain this to me? Am I missing something basic here?
I want to commit my changes back to the data source from within the column
changed handler (after validation), but data adapter Update method obviously
won't do anything since the dataset thinks it has no changes.
The proposed value is as expected in the event arg, by the way.
I'll do my validation in the ColumnChanged event handler, and the saving in
the RowChanged handler, since they seem to be called in that order.
Documentation says I shouldn't have to do this, but it works... Still
curious if I'm missing something...
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.