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


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
System.ArgumentExceptionThe 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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcDateTimeCellType Class
GcDateTimeCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.