DataAdapter RowUpdating Event Design Problem

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?

--
 

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.

Ask a Question

Top