Version

CellSelectionChanged Property (SelectionClientEvents)

Event fired after a Cell's selection changed.
Syntax
'Declaration
 
Public Property CellSelectionChanged As String
public string CellSelectionChanged {get; set;}
Example
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();
           
       }
Requirements

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

See Also