Event parameters used for events that take Row as its argument
Visual Basic (Declaration)
Public Class RowEventArgs
public class RowEventArgs :
Following code shows some of the information available in AfterRowUpdate event. It gets the underlying DataRow associated with the row that was updated and prints out its RowState property. For this to work, the UltraGrid must be bound to a DataSet.
PrivateSub UltraGrid1_AfterRowUpdate(ByVal sender AsObject, ByVal e As Infragistics.Win.UltraWinGrid.RowEventArgs) Handles ultraGrid1.AfterRowUpdate
' AfterRowUpdate gets called after a row has been updated by the UltraGrid.
IfTypeOfMe.ultraGrid1.DataSource Is DataSet ThenIf e.Row.Band IsMe.ultraGrid1.DisplayLayout.Bands(0) ThenDim drv As DataRowView = DirectCast(e.Row.ListObject, DataRowView)
Dim dr As DataRow = drv.Row
Debug.WriteLine("Row state of the data row sould be modified: " & dr.RowState.ToString())
privatevoid ultraGrid1_AfterRowUpdate(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e)
// AfterRowUpdate gets called after a row has been updated by the UltraGrid.
if ( this.ultraGrid1.DataSource is DataSet )
if ( e.Row.Band == this.ultraGrid1.DisplayLayout.Bands )
DataRowView drv = (DataRowView)e.Row.ListObject;
DataRow dr = drv.Row;
Debug.WriteLine( "Row state of the data row sould be modified: " + dr.RowState.ToString( ) );