Xceed Grid for WinForms v4.3 Documentation
EnterEdit(MouseButtons,Point) Method


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > Cell Class > EnterEdit Method : EnterEdit(MouseButtons,Point) Method
A System.Windows.Forms.MouseButtons value that will be used in the cell editor's System.Windows.Forms.Control.MouseDown event. The cell editor's ICellEditor.HandleActivationClick property must be set to true.
A System.Drawing.Point representing the position of the mouse. The cell editor's ICellEditor.HandleActivationClick property must be set to true.
Enter edit mode and raise the cell editor's System.Windows.Forms.Control.MouseDown event.
Syntax
'Declaration
 
Public Overloads Sub EnterEdit( _
   ByVal mouseButton As MouseButtons, _
   ByVal mousePosition As Point _
) 
'Usage
 
Dim instance As Cell
Dim mouseButton As MouseButtons
Dim mousePosition As Point
 
instance.EnterEdit(mouseButton, mousePosition)
public void EnterEdit( 
   MouseButtons mouseButton,
   Point mousePosition
)

Parameters

mouseButton
A System.Windows.Forms.MouseButtons value that will be used in the cell editor's System.Windows.Forms.Control.MouseDown event. The cell editor's ICellEditor.HandleActivationClick property must be set to true.
mousePosition
A System.Drawing.Point representing the position of the mouse. The cell editor's ICellEditor.HandleActivationClick property must be set to true.
Remarks

If the cell is not the current cell, then it will be made current and brought into view.

The appropriate cell editor will be initialized depending on the datatype of the cell's content.

If the cell's, or its ambient parent's, ReadOnly property is set to true, then an exception will be thrown when calling EnterEdit.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cell Class
Cell Members
Overload List