Search
Grid.cellSelected Event
See Also
 






Raised when a cell is selected.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher cellSelected

 Event Data

The event handler method receives the following arguments:
sender
A Grid instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A CellEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the cellSelected event of Grid, which uses the CellEventArgs class to provide event data:

JavaScript  Copy Code
grid.cellSelected.addEventListener(function (sender, args)
{
    document.getElementById("row_index").value = args.row;
});

 See Also