FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / Row Class / Editor Property

In This Topic
    Editor Property (Row)
    In This Topic
    Gets or sets the custom editor used to edit cells in this column.
    Syntax
    'Declaration
     
    
    Public Overridable Property Editor As Control
    public virtual Control Editor {get; set;}
    Remarks

    The grid provides several built-in editors that are automatically selected based on the properties of the cell being edited.

    This property allows you to use external editors when editing values in a given column. Any control can be used as an external editor, but to achieve complete integration with the grid, the external editor should implement the C1.Win.IEmbeddedEditor interface.

    You can associate external editors with columns at design time (using the grid's Column Editor) or at run time, by setting this property.

    Example

    The code below creates a C1DateEdit control and assigns it to the RowCol.Editor property of a grid column. The control will be used to edit cells on this column instead of the default System.Windows.Forms.DateTimePicker control.

    All controls in the C1Input and C1Input.Pickers libraries implement the C1.Win.IEmbeddedEditor interface and can be used as grid editors without any extra code.

    See Also