KB Article A412
Visible to All Users

Why is the DoubleClick event for the GridView not triggered?

Description:
What event is fired when a row in the XtraGrid is double-clicked?

Answer:
Please note, if the View's OptionsBehavior.Editable property is True, the double-click is processed by two different objects: a grid view (the first click) and the in-place editor (which opens when you click for the first time). If you need to catch the moment when the end-user double clicked within the editor, you should handle the view's ShownEditor and write an event handler for the double-click event of the editor:

C#
private void gridView1_ShownEditor(object sender, System.EventArgs e) { DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExpress.XtraGrid.Views.Grid.GridView; view.ActiveEditor.DoubleClick -= ActiveEditor_DoubleClick; view.ActiveEditor.DoubleClick +=ActiveEditor_DoubleClick; } private void ActiveEditor_DoubleClick(object sender, System.EventArgs e) { // your code here; }

See Also:
How to handle a double-click on a grid row or cell
How to make the grid activate its in-place editor on double click only
Why is the MouseUp event for the GridView not triggered?
How to cancel the default processing of the GridControl mouse events

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.