Description:
I am trying to use the Grid DoubleClick event to implement some custom functionality. When an end-user double-clicks a group row, it is expanded or collapsed. Is there any way to prevent this behaviour?
Answer:
Yes, to do this you should handle the GridControl’s DoubleClick event. Within this event you can cast the EventArgs to the DevExpress.Utils.DXMouseEventArgs class and set the Handled property to true
C#private void gridControl1_DoubleClick(object sender, System.EventArgs e) {
((DevExpress.Utils.DXMouseEventArgs)e).Handled = true;
}
See Also:
Why is the DoubleClick event for the GridView not triggered?
How to make the grid activate its in-place editor on double click only
Why is the MouseUp event for the GridView not triggered?