Xceed Grid for WinForms v4.3 Documentation
GetControlValueCore Method (ComboBoxEditor)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Editors Namespace > ComboBoxEditor 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.
Retrieves the value of the control.
Syntax
'Declaration
 
Protected Overrides Function GetControlValueCore( _
   ByVal control As Control, _
   ByVal cell As Cell, _
   ByVal returnDataType As Type _
) As Object
'Usage
 
Dim instance As ComboBoxEditor
Dim control As Control
Dim cell As Cell
Dim returnDataType As Type
Dim value As Object
 
value = instance.GetControlValueCore(control, cell, returnDataType)
protected override 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.

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

ComboBoxEditor Class
ComboBoxEditor Members
Base Implementation in GetControlValueCore