Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.CellSelectionChanged = "WDG1_CellSelectionChanged"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.CellSelectionChanged = "WDG1_CellSelectionChanged";
// The client event CellSelectionChanged takes two parameters sender and e // sender is the object which is raising the event // e is the CellSelectionChangedEventArgs function WDG1_CellSelectionChanged(sender, e) { //Returns the collection of selected cells var selectedCells = e.getSelectedCells(); var s = prompt("Enter 'Yes' to unselect the cells : "); if (s == 'Yes') //Unselects the selected cells selectedCells.clear(); }