Working with GridWeb Double Click Events

Enabling Double Click Events

All types of double click events can be enabled client-side by setting the GridWeb control’s EnableDoubleClickEvent property to true.

Once double-click events are enabled, it is possible to create event handlers for any double-click events. These event handlers perform specific tasks when a given double-click event is fired.

Handling Double Click Events

To create an event handler in Visual Studio:

  1. Double-click an event in the Events list in the Properties pane.

For this example, we implemented event handlers for various double-click events.

Double Click Cell

The event handler for the CellDoubleClick event provides an argument of the CellEventArgs type, which provides the complete information of the cell that is double-clicked.

Double Click Column Header

The event handler for the ColumnDoubleClick event provides an argument of the RowColumnEventArgs type that provides the index number of the column for the header that was double-clicked and other information.

Double Click Row Header

The event handler for the RowDoubleClick event provides an argument of the RowColumnEventArgs type that provides the index number of the row for the header that was double-clicked and other related information.