Hi Miha,
Here's the relevant code. In the rowchanged event I have a messagebox that
never shows:
Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1
Me.SqlSelectCommand1.CommandText = "SELECT bipad, issuecode, imcacct, title,
brname, ponumber, draw, sold, preturn, r" & _
"return, shortage, net, efficiency, billed, shipdt, uprice, ptype,
posstatus, vflag FROM hi" & _
"std WHERE (shipdt >= " & Chr(39) & gl_browsestartdate & Chr(39) & ")"
Me.SqlSelectCommand1.Connection = Me.SqlConnection1
Me.SqlDataAdapter1.Fill(Me.Histdds1)
Dim dt As DataTable
dt = Histdds1.Tables(0)
AddHandler dt.RowChanged, New DataRowChangeEventHandler(AddressOf
DataTableRow_Changed)
Public Sub DataTableRow_Changed(ByVal Sender As Object, ByVal e As
System.Data.DataRowChangeEventArgs)
' glf_icount is a class variable - i use 'glf_' for 'global to this form'
MessageBox.Show("here")
glf_icount += 1
If glf_icount > (pbar.Maximum / 100) Then
glf_icount = 0
pbar.PerformStep()
Application.DoEvents()
End If
End Sub