Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDateTime Class / DefaultActiveFieldIndex Property
Example


In This Topic
    DefaultActiveFieldIndex Property (GcDateTime)
    In This Topic
    Gets or sets the index of default active editable field. This is a dependency property.
    Syntax
    'Declaration
     
    Public Property DefaultActiveFieldIndex As Integer
    'Usage
     
    Dim instance As GcDateTime
    Dim value As Integer
     
    instance.DefaultActiveFieldIndex = value
     
    value = instance.DefaultActiveFieldIndex
    public int DefaultActiveFieldIndex {get; set;}

    Property Value

    An System.Int32 value indicates the default active field.
    Exceptions
    ExceptionDescription
    The assigned value is less than -1.
    Remarks
    The DefaultActiveFieldIndex represents the index of the editable field. When the control got focus, the default active field will be activated. The value is based on should be greater than -1. When user set a value greater than the index of last editable field, the last editable field will be activated when control get keyboard focus.
    Example
    GcDateTime date1 = new GcDateTime();
    date1.DefaultActiveFieldIndex = 1;
    See Also