This event is cancelable.
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanging = "WDG1_RowSelectionChanging"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanging = "WDG1_RowSelectionChanging";
// The client event RowSelectionChanging takes two parameters sender and e // sender is the object which is raising the event // e is the RowSelectionChangingEventArgs function WDG1_RowSelectionChanging(sender, e) { //Returns a Read Only collection of the currently selected rows var currentSelectedRows = e.getCurrentSelectedRows(); //Returns the number of rows in the collection var currentLength = currentSelectedRows.get_length(); //Returns a Read Only collection of the newly selected rows var newSelectedRows = e.getNewSelectedRows(); var newLength = newSelectedRows.get_length(); window.status = "The number of rows 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