The code below does not work when i make any change in the datatable called 'tb', what am i missing?
VB Code:
  1. Dim tb As New DataTable()
  2.  
  3. #Region " Windows Form Designer generated code "
  4.  
  5. '
  6. '
  7. '
  8. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  9. dim clm as DataColumn = New DataColumn("P", System.Type.GetType("System.String"))
  10. tb.Columns.Add(clm)
  11. AddHandler tb.RowChanged, New System.Data.DataRowChangeEventHandler(AddressOf TestEvents)
  12.  
  13. End Sub
  14.  
  15. Private Sub TestEvents(ByVal sender As Object, ByVal e As System.Data.DataRowChangeEventArgs)
  16.         MessageBox.Show("Something Happened")
  17. End Sub