DataGridViewTextBoxCell::OnMouseClick Method (DataGridViewCellMouseEventArgs^)

 

Called by DataGridView when the mouse leaves a cell.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
virtual void OnMouseClick(
	DataGridViewCellMouseEventArgs^ e
) override

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
Return to top
Show: