The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientGridView.RowDblClick Event

Fires on the client when a data row is double clicked.

Declaration

RowDblClick: ASPxClientEvent<ASPxClientGridViewRowClickEventHandler<ASPxClientGridView>>

Event Data

The RowDblClick event handler receives an argument of the ASPxClientGridViewRowClickEventArgs type. The following properties provide information specific to this event.

Property Description
cancel Gets or sets a value indicating whether the action which raised the event should be canceled.
(Inherited from ASPxClientCancelEventArgs)
htmlEvent Provides access to the parameters associated with the ASPxClientGridView.RowClick event.
visibleIndex Gets the processed row's visible index.

Remarks

Note

The grid does not raise the RowDblClick event if the Batch Edit Mode is enabled.

Examples

This example shows how to switch ASPxGridView to an edit mode by double-clicking a data row. To do this, handle the ASPxClientGridView.RowDblClick client-side event and call the ASPxClientGridView.StartEditRow method.

<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
    ClientInstanceName="grid" DataSourceID="AccessDataSource1" KeyFieldName="ProductID">
    <ClientSideEvents RowDblClick="function(s, e) {
        s.StartEditRow(e.visibleIndex);
    }" />
    <Columns>
        <dxwgv:GridViewDataTextColumn FieldName="ProductID" ReadOnly="True" VisibleIndex="0">
            <EditFormSettings Visible="False" />
        </dxwgv:GridViewDataTextColumn>
        <dxwgv:GridViewDataTextColumn FieldName="ProductName" VisibleIndex="1">
        </dxwgv:GridViewDataTextColumn>
        <dxwgv:GridViewDataTextColumn FieldName="UnitPrice" VisibleIndex="2">
        </dxwgv:GridViewDataTextColumn>
        <dxwgv:GridViewDataTextColumn FieldName="UnitsOnOrder" VisibleIndex="3">
        </dxwgv:GridViewDataTextColumn>
    </Columns>
</dxwgv:ASPxGridView>
See Also