[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.DefaultActiveFieldIndex

DefaultActiveFieldIndex Property

DefaultActiveFieldIndex

Gets or sets the index of default active editable field. This is a dependency property.

Declaration
public int DefaultActiveFieldIndex { get; set; }
Public Property DefaultActiveFieldIndex As Integer
Property Value
Type Description
int

An int value indicates the default active field.

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.

Examples
GcDateTime date1 = new GcDateTime();
date1.DefaultActiveFieldIndex = 1;
Exceptions
Type Condition
ArgumentException

The assigned value is less than -1.