DataGridViewTextBoxCell.OnEnter Method (Int32, Boolean)

 

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

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

protected override void OnEnter(
	int rowIndex,
	bool throughMouseClick
)

Parameters

rowIndex
Type: System.Int32

The index of the row entered by the mouse.

throughMouseClick
Type: System.Boolean

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

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

.NET Framework
Available since 2.0
Return to top
Show: