バージョン

RowEndEdit イベント

RowEndEdit イベントは、UltraDataRow の System.ComponentModel.IEditableObject 実装の EndEdit が呼び出されたときに発生します。
シンタックス
'宣言
 
Public Event RowEndEdit As RowEndEditEventHandler
public event RowEndEditEventHandler RowEndEdit
イベント データ

イベント ハンドラが、このイベントに関連するデータを含む、RowEndEditEventArgs 型の引数を受け取りました。次の RowEndEditEventArgs プロパティには、このイベントの固有の情報が記載されます。

プロパティ解説
Row Infragistics.Win.UltraWinDataSource.UltraDataRowEventArgsから継承されます。行を取得します。
解説

RowEndEdit イベントは、UltraDataRow の System.ComponentModel.IEditableObject 実装の EndEdit が呼び出されたときに発生します。バインドされたコントロールは通常、行に対する一連の変更をコミットする場合に行に対してEndEditを呼び出します。1 つ以上の行セルが変更された場合は、その変更をコミットするために行オブジェクトに対して System.ComponentModel.IEditableObject.EndEdit が呼び出されます。Infragistic.Win.UltraWinDataSource.UltraDataSource.RowBeginEdit、RowBeginEditRowEndEditRowCancelEdit の各イベントはそれぞれ、UltraDataRow 実装の System.ComponentModel.IEditableObject.BeginEditSystem.ComponentModel.IEditableObject.EndEdit 、および System.ComponentModel.IEditableObject.CancelEdit に対応します。

注: 同時に複数の行を編集モードにすることができます。この場合、RowBeginEditRowCancelEdit または RowEndEdit は別々の行に対して非同期に発生します。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDataSource


    Private Sub UltraDataSource1_RowBeginEdit(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDataSource.RowBeginEditEventArgs) Handles ultraDataSource1.RowBeginEdit
        ' RowBeginEdit gets fired whenever a bound control starts a row edit 
        ' operation. If you are instructing UltraDataSource to not cache data
        ' in CellDataRequested/CellDataUpdated events then you would have to
        ' backup the row data so that in RowCancelEdit you can revert the row
        ' data back to the backed up data in case the user cancels the row
        ' modifications.
        Debug.WriteLine("RowBeginEdit fired on row with index " & e.Row.Index)
    End Sub

    Private Sub UltraDataSource1_RowCancelEdit(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDataSource.RowCancelEditEventArgs) Handles ultraDataSource1.RowCancelEdit
        ' RowCancelEdit gets called whenever a bound control cancels row 
        ' modifications. If you are instructing UltraDataSource to not cache 
        ' data in CellDataRequested/CellDataUpdated events then you would 
        ' have to backup the row data in RowBeginEdit so that in this event
        ' you can revert the row data back to the backed up data in case the 
        ' user cancels the row modifications.
        Debug.WriteLine("RowCancelEdit fired on row with index " & e.Row.Index)
    End Sub

    Private Sub UltraDataSource1_RowEndEdit(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDataSource.RowEndEditEventArgs) Handles ultraDataSource1.RowEndEdit
        ' RowEndEdit is fired when a bound control commits modifications made to a 
        ' row.
        Debug.WriteLine("RowEndEdit fired on row with index " & e.Row.Index)
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDataSource;
using System.Diagnostics;


		private void ultraDataSource1_RowBeginEdit(object sender, Infragistics.Win.UltraWinDataSource.RowBeginEditEventArgs e)
		{
			// RowBeginEdit gets fired whenever a bound control starts a row edit 
			// operation. If you are instructing UltraDataSource to not cache data
			// in CellDataRequested/CellDataUpdated events then you would have to
			// backup the row data so that in RowCancelEdit you can revert the row
			// data back to the backed up data in case the user cancels the row
			// modifications.
			Debug.WriteLine( "RowBeginEdit fired on row with index " + e.Row.Index );
		}

		private void ultraDataSource1_RowCancelEdit(object sender, Infragistics.Win.UltraWinDataSource.RowCancelEditEventArgs e)
		{
			// RowCancelEdit gets called whenever a bound control cancels row 
			// modifications. If you are instructing UltraDataSource to not cache 
			// data in CellDataRequested/CellDataUpdated events then you would 
			// have to backup the row data in RowBeginEdit so that in this event
			// you can revert the row data back to the backed up data in case the 
			// user cancels the row modifications.
			Debug.WriteLine( "RowCancelEdit fired on row with index " + e.Row.Index );
		}

		private void ultraDataSource1_RowEndEdit(object sender, Infragistics.Win.UltraWinDataSource.RowEndEditEventArgs e)
		{
			// RowEndEdit is fired when a bound control commits modifications made to a 
			// row.
			Debug.WriteLine( "RowEndEdit fired on row with index " + e.Row.Index );
		}
参照