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(); }