Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub Form1_Load(sender as object, e as System.EventArgs) Handles MyBase.Load
Me.OleDbDataAdapter1.Fill( Me.DataSet21 )
' Bind the UltraGrid to a data source whose underlying row objects implement
' IEditableObject interface to demonstrate the UpdateData method.
Me.UltraGrid1.DataSource = Me.DataSet21
' Set the UpdateMode to OnRowChange. BeforeRowUpdate event handler below prints
' out whenever a row is being updated.
Me.ultraGrid1.UpdateMode = UpdateMode.OnRowChange
End Sub
Private Sub UltraGrid1_BeforeRowUpdate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CancelableRowEventArgs) Handles ultraGrid1.BeforeRowUpdate
' Following code will write out whenever the row is being updated to illustate when a
' modified row gets updated with various UpdateMode settings.
Debug.WriteLine("Canceling the row update on row with list index of " & e.Row.ListIndex)
End Sub