バージョン

RowSelectionChanging プロパティ

行の選択が変更される前に発生するイベントです。

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

シンタックス
'宣言
 
Public Property RowSelectionChanging As String
public string RowSelectionChanging {get; set;}
使用例
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanging = "WDG1_RowSelectionChanging"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanging = "WDG1_RowSelectionChanging";
// The client event RowSelectionChanging takes two parameters sender and e
// sender  is the object which is raising the event
// e is the RowSelectionChangingEventArgs

function WDG1_RowSelectionChanging(sender, e) {

    //Returns a Read Only collection of the currently selected rows
    var currentSelectedRows = e.getCurrentSelectedRows();

    //Returns the number of rows in the collection
    var currentLength = currentSelectedRows.get_length();

    //Returns a Read Only collection of the newly selected rows
    var newSelectedRows = e.getNewSelectedRows();

    var newLength = newSelectedRows.get_length();

    window.status = "The number of rows selected changed from '" + currentLength + "' to '" + newLength + "'";
        
}
参照