DataGridViewButtonCell.OnMouseUp(DataGridViewCellMouseEventArgs) Method

Definition

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

protected:
 override void OnMouseUp(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override void OnMouseUp (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.OnMouseUp : System.Windows.Forms.DataGridViewCellMouseEventArgs -> unit
Protected Overrides Sub OnMouseUp (e As DataGridViewCellMouseEventArgs)

Parameters

Remarks

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(DataGridViewCellMouseEventArgs) in a derived class, be sure to call the base class's OnMouseUp(DataGridViewCellMouseEventArgs) method so that registered delegates receive the event.

Applies to

See also