Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcDateTimeCellType Class / DefaultActiveField Property
Example


In This Topic
    DefaultActiveField Property (GcDateTimeCellType)
    In This Topic
    Gets or sets the default active field of the cell.
    Syntax
    'Declaration
     
    Public Property DefaultActiveField As DateFieldInfo
    'Usage
     
    Dim instance As GcDateTimeCellType
    Dim value As DateFieldInfo
     
    instance.DefaultActiveField = value
     
    value = instance.DefaultActiveField
    public DateFieldInfo DefaultActiveField {get; set;}

    Property Value

    A GrapeCity.Win.Views.Field value that indicates the default active field.
    Exceptions
    Remarks
    When the cell enters edit mode, the default active field gets the focus and caret first.
    Example
    This example uses the DefaultActiveField property.
    GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
    datecell.DefaultActiveField = datecell.Fields[2];
    fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
    Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
    datecell.DefaultActiveField = datecell.Fields(2)
    fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
    See Also