Occurs when a cell within the DataGridView is double-clicked.
[Visual Basic] Public Event CellDoubleClick As DataGridViewCellMouseEventHandler [C#] public event DataGridViewCellMouseEventHandler CellDoubleClick; [C++] public: __event DataGridViewCellMouseEventHandler* CellDoubleClick;
The event handler receives an argument of type DataGridViewCellMouseEventArgs containing data related to this event. The following DataGridViewCellMouseEventArgs property provides information specific to this event.
Property | Description |
---|---|
Button | Gets which mouse button was pressed. |
Clicks | Gets the number of times the mouse button was pressed and released. |
ColumnIndex | Gets the column index of the cell that raised the event. |
Delta | Gets a signed count of the number of detents the mouse wheel has rotated. A detent is one notch of the mouse wheel. |
RowIndex | Gets the row index of the cell that raised the event. |
X | Gets the x-coordinate of a mouse click. |
Y | Gets the y-coordinate of a mouse click. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
DataGridView Class | DataGridView Members | Wimark.Controls Namespace