Cannot change row in RowUpdating event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I had expected to be able to change the DataRow that is passed into the RowUpdating event, but for some reason it does not seem to work. Am I doing something wrong or is a workaround?
 
Hi,

I found the answer to this question some time after I posted it. However I have experienced NO answers even after weeks go by on these managed newsgroups. This is in sharp contrast to the past years where response was immediate and at worst 2 days later.

Apart from that, I wanted to share the solution I found to my own problem: if you are in a handler for RowUpdating and want to modify some column(s) of the DataRow passed in, do so via the e.Command.Parameters collection - that is, set the value of the appropiate parameter in that collection to the value you want to set in the DB.

Again, if someone from Microsoft can explain to me why the managed newsgroups are not working, I would greatly appreciated.

Regards,
Juan Dent
 
Back
Top