Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Editors Namespace / CellEditorManager Class / CreateControl Method


In This Topic
    CreateControl Method (CellEditorManager)
    In This Topic
    Creates the System.Windows.Forms.Control that will be used to edit the content of cells.
    Syntax
    'Declaration
     
    Protected Friend Overridable Function CreateControl() As Control
    'Usage
     
    Dim instance As CellEditorManager
    Dim value As Control
     
    value = instance.CreateControl()
    protected internal virtual Control CreateControl()

    Return Value

    A System.Windows.Forms.Control that will be used to edit the content of cells. If CreateControlMode is set to Xceed.Grid.CreateControlMode.ClonedInstance, a new instance of the control should be returned.
    Remarks

    In the case where CreateControlMode is overridden to returned to Xceed.Grid.CreateControlMode.SingleInstance (default), the TemplateControl will be used directly. If CreateControlMode is overridden to returned ClonedInstance, CreateControl should also be overridden to return a cloned instance of the TemplateControl.

    To clone a control that does not expose or implement the System.ICloneable.Clone method, the generic Xceed.UI.ThemedControl.CloneControl method can be used.

    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