OnMouseDown Method
TOC
Collapse the table of content
Expand the table of content

DataGridViewCell.OnMouseDown Method (DataGridViewCellMouseEventArgs)

 

Called when the user holds down a mouse button while the pointer is on a cell.

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

protected virtual void OnMouseDown(
	DataGridViewCellMouseEventArgs e
)

This method is similar to the DataGridView.OnCellMouseDown method. It is called in the same circumstances in which a DataGridView.CellMouseDown event is raised, but it does not actually raise the event.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft