バージョン

RowSelectionChanged プロパティ (SelectionClientEvents)

行の選択が変更された後に発生するイベントです。
シンタックス
'宣言
 
Public Property RowSelectionChanged As String
public string RowSelectionChanged {get; set;}
使用例
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanged = "WDG1_RowSelectionChanged"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanged = "WDG1_RowSelectionChanged";
// The client event RowSelectionChanged takes two parameters sender and e
 // sender  is the object which is raising the event
 // e is the RowSelectionChangedEventArgs

function WDG1_RowSelectionChanged(sender, e) {


    //Returns the collection of selected rows
    var selectedRows = e.getSelectedRows();

    var s = prompt("Enter 'Yes' to unselect the rows : ");

    if (s == 'Yes')

    //Unselects the selected rows
        selectedRows.clear();
        
        
 }
参照