Xceed Grid for WinForms v4.3 Documentation
GetControlValue Method


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Editors Namespace > CellEditorManager Class : GetControlValue 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 and raises the GettingControlValue event.Retrieves the value assigned to the control.
Syntax
'Declaration
 
Protected Friend Function GetControlValue( _

   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.GetControlValue(control, cell, returnDataType)
protected internal object GetControlValue( 

   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.A reference to the value assigned to the control.
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

CellEditorManager Class
CellEditorManager Members