Event Hander not firing

  • Thread starter Thread starter Bruce A. Julseth
  • Start date Start date
B

Bruce A. Julseth

I'm trying to create a "RowUpdated" event.

I have
Dim da As New SqlDataAdapter()
and
Dim dst As New DataSet()
declared as a globals.

I have the event handler defined as

Private Sub da_RowUpdated(ByVal sender As Object, ByVal e As
SqlRowUpdatedEventArgs)

In my Load procedure, I have

AddHandler da.RowUpdated, AddressOf da_RowUpdated

In my Save procedure, I have

dst.Tables("MyTable").Rows.Add(drRow)

I would expect this statement to fire the da.RowUpdated event.

What am I missing?

Thanks....
 
Bruce A. Julseth said:
I'm trying to create a "RowUpdated" event.

I have
Dim da As New SqlDataAdapter()
and
Dim dst As New DataSet()
declared as a globals.

I have the event handler defined as

Private Sub da_RowUpdated(ByVal sender As Object, ByVal e As
SqlRowUpdatedEventArgs)

In my Load procedure, I have

AddHandler da.RowUpdated, AddressOf da_RowUpdated

In my Save procedure, I have

dst.Tables("MyTable").Rows.Add(drRow)

I would expect this statement to fire the da.RowUpdated event.

What am I missing?

Thanks....

Never mind. I think I have found the problem, namely the event fired on
intResult = da.update(dst, "MyTable")

I'll be back if this isn't working...

Thanks...
 
Back
Top