Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.ColumnSelectionChanged = "WDG1_ColumnSelectionChanged"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.ColumnSelectionChanged = "WDG1_ColumnSelectionChanged";
// The client event ColumnSelectionChanged takes two parameters sender and e // sender is the object which is raising the event // e is the ColumnSelectionChangedEventArgs function WDG1_ColumnSelectionChanged(sender, e) { //Returns the collection of selected columns var selectedColumns = e.getSelectedColumns(); var s = prompt("Enter 'Yes' to unselect the columns : "); if (s == 'Yes') //Unselects the selected columns selectedColumns.clear(); }