Bewerken

Share via


DataGridViewTextBoxCell.OnEnter(Int32, Boolean) Method

Definition

Called by DataGridView when the selection cursor moves onto a cell.

protected:
 override void OnEnter(int rowIndex, bool throughMouseClick);
protected override void OnEnter (int rowIndex, bool throughMouseClick);
override this.OnEnter : int * bool -> unit
Protected Overrides Sub OnEnter (rowIndex As Integer, throughMouseClick As Boolean)

Parameters

rowIndex
Int32

The index of the row entered by the mouse.

throughMouseClick
Boolean

true if the cell was entered as a result of a mouse click; otherwise, false.

Remarks

This method is similar to the Control.OnEnter method. It is called in the same circumstances in which an Control.Enter event is raised, but it does not actually raise the event.

Notes to Inheritors

When overriding OnEnter(Int32, Boolean) in a derived class, be sure to call the base class's OnEnter(Int32, Boolean) method so that registered delegates receive the event.

Applies to

See also