windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-baa53630.md
Occurs when a View is double-clicked.
Namespace : DevExpress.XtraGrid.Views.Base
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DXCategory("Action")]
public event EventHandler DoubleClick
<DXCategory("Action")>
Public Event DoubleClick As EventHandler
The DoubleClick event's data class is EventArgs.
The DoubleClick event occurs when the end-user double-clicks within a View. The DoubleClick event does not occur if an in-place editor is activated as a result of double-clicking as well as when double-clicking within the GridControl.EmbeddedNavigator. See this help topic for more details: How to: Handle a Double-Click on a Grid Row or Cell.
This event can be used to perform specific actions in response to double-click events against a particular View element. Refer to the Hit Information help topic for information on how to identify the View element located under the mouse pointer.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DoubleClick event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-grid-double-click-row-cell/CS/DoubleClickCell/Form1.cs#L33
private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e) {
gridView1.DoubleClick -= gridView1_DoubleClick;
gridView1.ShownEditor -= gridView1_ShownEditor;
{
gridView.DoubleClick += gridView_DoubleClick;
headerEdit.Leave += headerEdit_Leave;
winforms-grid-double-click-row-cell/VB/DoubleClickCell/Form1.vb#L34
Private Sub radioGroup1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
RemoveHandler gridView1.DoubleClick, AddressOf gridView1_DoubleClick
RemoveHandler gridView1.ShownEditor, AddressOf gridView1_ShownEditor
Private Sub SubscribeEvents()
AddHandler gridView.DoubleClick, AddressOf gridView_DoubleClick
AddHandler headerEdit.Leave, AddressOf headerEdit_Leave
See Also