Spread Windows Forms 11.0 Product Documentation
DefaultActiveField Property (GcDateTimeCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : DefaultActiveField Property
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
ExceptionDescription
The value is not a GrapeCity.Win.Spread.InputMan.CellType.Fields.DateInputField.
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

Reference

GcDateTimeCellType Class
GcDateTimeCellType Members