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