バージョン

RowEventHandler デリゲート

イベント引数としてRowEventArgsを取得するイベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub RowEventHandler( _
   ByVal sender As Object, _
   ByVal e As RowEventArgs _
) 
public delegate void RowEventHandler( 
   object sender,
   RowEventArgs e
)

パラメータ

sender
e
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub UltraGrid1_AfterRowUpdate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.RowEventArgs) Handles ultraGrid1.AfterRowUpdate

       ' 行が UltraGrid に更新された後に AfterRowUpdate を発生します

       If TypeOf Me.ultraGrid1.DataSource Is DataSet Then
           If e.Row.Band Is Me.ultraGrid1.DisplayLayout.Bands(0) Then
               Dim 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())
           End If
       End If

   End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void ultraGrid1_AfterRowUpdate(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e)
{

	// 行が UltraGrid に更新された後に AfterRowUpdate を発生します

	if ( this.ultraGrid1.DataSource is DataSet )
	{
		if ( e.Row.Band == this.ultraGrid1.DisplayLayout.Bands[0] )
		{
			DataRowView drv = (DataRowView)e.Row.ListObject;	

			DataRow dr = drv.Row;

			Debug.WriteLine( "Row state of the data row sould be modified: " + dr.RowState.ToString( ) );
		}
	}

}
参照