DataAdapter RowUpdating Event Design Problem

  • Thread starter Thread starter Gandalf
  • Start date Start date
G

Gandalf

The RowUpdating event of a DataAdapter, which fires before a row is updated,
fires AFTER the row update parameters have been populated. This means that
changes in the RowUpdatingEventArgs.Row is not reflected in the update.
This, in my mind, is a design error. The event should be fired before the
parameters are populated.

There is a way around this problem. In the RowUpdating event I can update
the RowUpdatingEventArgs.Command.Parameters collection but this is much less
intuitive and more prone to errors.

Might I suggest that we have another event that fires before the parameters
are updated... please?

--
 
Back
Top