Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Editors Namespace / CellEditorManager Class / Validate Method
The System.Windows.Forms.Control that will be used to edit the content of the cell.
The Xceed.Grid.Cell whose content is to be edited by the control.


In This Topic
    Validate Method (CellEditorManager)
    In This Topic
    Validates if the editor's value is valid and can be assigned to its underlying cell as well as raises the Validating event.
    Syntax
    'Declaration
     
    Protected Friend Function Validate( _
       ByVal control As Control, _
       ByVal cell As Cell _
    ) As Boolean
    'Usage
     
    Dim instance As CellEditorManager
    Dim control As Control
    Dim cell As Cell
    Dim value As Boolean
     
    value = instance.Validate(control, cell)
    protected internal bool Validate( 
       Control control,
       Cell cell
    )

    Parameters

    control
    The System.Windows.Forms.Control that will be used to edit the content of the cell.
    cell
    The Xceed.Grid.Cell whose content is to be edited by the control.

    Return Value

    true if the value is valid; false otherwise.
    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