バージョン

RowAdding プロパティ (EditingClientEvents)

行が追加される前に発生するイベント。

このイベントはキャンセルできます。

シンタックス
'宣言
 
Public Property RowAdding As String
public string RowAdding {get; set;}
使用例
Me.WebDataGrid1.Behaviors.EditingCore.EditingClientEvents.RowAdding = "WDG1_RowAdding"
this.WebDataGrid1.Behaviors.EditingCore.EditingClientEvents.RowAdding = "WDG1_RowAdding";
// The client event RowAdding takes two parameters sender and e
    // sender  is the object which is raising the event
    // e is the CancelAddRowEventArgs
	
        function WDG1_RowAdding(sender, e) {

            //Returns the cell values for the new row
            var cellValues = e.get_cellValues();

            if (!confirm("Are you sure you want to enter a new row with cell values '" + cellValues[0] + "', '" + cellValues[1] + "', '" + cellValues[2] + "'?"))

            //Cancels the 'RowAdding' event
            e.set_cancel(true);

}
参照