DataGridViewButtonCell::OnMouseUp Method (DataGridViewCellMouseEventArgs^)

 

Called when the mouse button is released while the pointer is on the cell.

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

protected:
virtual void OnMouseUp(
	DataGridViewCellMouseEventArgs^ e
) override

If activated by the left mouse button, this method updates the cell's user interface (UI).

This method is similar to the Control::OnMouseUp method. It is called in the same circumstances in which a Control::MouseUp event is raised, but it does not actually raise the event.

Notes to Inheritors:

When overriding OnMouseUp in a derived class, be sure to call the base class's OnMouseUp method so that registered delegates receive the event.

.NET Framework
Available since 2.0
Return to top
Show: