This event is cancelable.
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.CellSelectionChanging = "WDG1_CellSelectionChanging"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.CellSelectionChanging = "WDG1_CellSelectionChanging";
// The client event CellSelectionChanging takes two parameters sender and e // sender is the object which is raising the event // e is the CellSelectionChangingEventArgs function WDG1_CellSelectionChanging(sender, e) { //Returns a Read Only collection of the currently selected cells var currentSelectedCells = e.getCurrentSelectedCells(); //Returns the amount of cells in the collection var currentLength = currentSelectedCells.get_length(); //Returns a Read Only collection of the newly selected cells var newSelectedCells = e.getNewSelectedCells(); var newLength = newSelectedCells.get_length(); window.status = "The number of cells selected changed from '" + currentLength + "' to '" + newLength + "'"; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2