Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Editors Namespace / CellEditorManager Class / GetControlValueCore Method
The control from which to retrieve the value.
The cell currently being edited by the control.
A System.Type representing the datatype to which the control's value must be converted.


In This Topic
    GetControlValueCore Method (CellEditorManager)
    In This Topic
    Retrieves the value of the control.
    Syntax
    'Declaration
     
    Protected Overridable Function GetControlValueCore( _
       ByVal control As Control, _
       ByVal cell As Cell, _
       ByVal returnDataType As Type _
    ) As Object
    'Usage
     
    Dim instance As CellEditorManager
    Dim control As Control
    Dim cell As Cell
    Dim returnDataType As Type
    Dim value As Object
     
    value = instance.GetControlValueCore(control, cell, returnDataType)
    protected virtual object GetControlValueCore( 
       Control control,
       Cell cell,
       Type returnDataType
    )

    Parameters

    control
    The control from which to retrieve the value.
    cell
    The cell currently being edited by the control.
    returnDataType
    A System.Type representing the datatype to which the control's value must be converted.

    Return Value

    The value that will be assigned to the cell being edited by the control, in the correct datatype.
    Remarks

    If the cell's Xceed.Grid.Cell.ParentRow's Xceed.Grid.CellRow.EnforceCellDataTypes is false, returnDataType will be "object"; otherwise, returnDataType will by equal to the parent column's Xceed.Grid.Column.DataType.

    GetControlValueCore must return the value of the control that is currently editing the cell and not the TemplateControl.

    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