Search
Grid.rowSelecting Event
See Also
 






Raised before a row is selected.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher rowSelecting

 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 RowModifyingEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the rowSelecting event of a Grid instance and does not allow selection of the first row:

JavaScript  Copy Code

grid.rowSelecting.addEventListener(onRowSelecting);

function onRowSelecting(sender, args)
{
    if( args.row == 0)
       args.cancel = true;
}

 See Also