DataGridViewTextBoxCell::OnMouseClick Method (DataGridViewCellMouseEventArgs^)
.NET Framework (current version)
Called by DataGridView when the mouse leaves a cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- e
-
Type:
System.Windows.Forms::DataGridViewCellMouseEventArgs^
An DataGridViewCellMouseEventArgs that contains the event data.
OnMouseClick determines whether the mouse click is part of a double click that starts an edit session.
This method is similar to the Control::OnMouseClick method. It is called in the same circumstances in which a Control::MouseClick event is raised, but it does not actually raise the event.
Notes to Inheritors:
When overriding OnMouseClick in a derived class, be sure to call the base class's OnMouseClick method so that registered delegates receive the event.
.NET Framework
Available since 2.0
Available since 2.0
Show: