Version

ActiveCellChanged Property (ActivationClientEvents)

Event fired after a cell becomes active.
Syntax
'Declaration
 
Public Property ActiveCellChanged As String
public string ActiveCellChanged {get; set;}
Example
Me.WebDataGrid1.Behaviors.Activation.ActivationClientEvents.ActiveCellChanged = "WDG1_ActiveCellChanged"
this.WebDataGrid1.Behaviors.Activation.ActivationClientEvents.ActiveCellChanged = "WDG1_ActiveCellChanged";
// The client event ActiveCellChanged takes two parameters sender and e
// sender  is the object which is raising the event
// e is the ActiveCellChangedEventArgs

    function WDG1_ActiveCellChanged(sender, e) {
        
        //Gets the active cell  
        var cell = e.getActiveCell();

        //Gets the column of the selected cell
        var column = cell.get_column();
        
        //Gets the key of the column
        var key = column.get_key();

        //Gets the value in the selected cell
        var value = cell.get_value();
       
        window.status = "The cell with the value '" + value + "' under the column '" + key + "' is activated";         
  }
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