Xceed Grid for WinForms v4.3 Documentation
CellEditorManager Constructor(Control,String,Boolean,Boolean)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Editors Namespace > CellEditorManager Class > CellEditorManager Constructor : CellEditorManager Constructor(Control,String,Boolean,Boolean)
A reference to a System.Windows.Forms.Control representing the control that will be used as a template to create the controls that will edit the content of cells.
A string representing the property used to get the control's value.
true if the System.Windows.Forms.Control is painted within the bounds of the cell; false otherwise.
Indicates if the control should handle the mouse click once it is activated. Only in the case where inPlace is set to true does it make sense for handleActivationClick to also be set to true.
Initializes a new instance of the CellEditorManager class specifying the control that will be used as a template to edit the content of cells, as well as other characteristics that will apply to the editor.
Syntax
'Declaration
 
Public Function New( _

   ByVal templateControl As Control, _

   ByVal propertyName As String, _

   ByVal inPlace As Boolean, _

   ByVal handleActivationClick As Boolean _

)
'Usage
 
Dim templateControl As Control

Dim propertyName As String

Dim inPlace As Boolean

Dim handleActivationClick As Boolean

 

Dim instance As New CellEditorManager(templateControl, propertyName, inPlace, handleActivationClick)
public CellEditorManager( 

   Control templateControl,

   string propertyName,

   bool inPlace,

   bool handleActivationClick

)

Parameters

templateControl
A reference to a System.Windows.Forms.Control representing the control that will be used as a template to create the controls that will edit the content of cells.
propertyName
A string representing the property used to get the control's value.
inPlace
true if the System.Windows.Forms.Control is painted within the bounds of the cell; false otherwise.
handleActivationClick
Indicates if the control should handle the mouse click once it is activated. Only in the case where inPlace is set to true does it make sense for handleActivationClick to also be set to true.
Remarks

In the case where CreateControlMode is set to Xceed.Grid.CreateControlMode.SingleInstance (default), the templateControl will be used directly. If CreateControlMode is set to ClonedInstance, the CreateControl method will be called to clone the templateControl when needed.

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

CellEditorManager Class
CellEditorManager Members
Overload List