Spread Windows Forms 7.0 Product Documentation
DefaultActiveField Property
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : DefaultActiveField Property


Glossary Item Box

Gets or sets the default active field of the cell.

Syntax

Visual Basic (Declaration) 
Public Property DefaultActiveField As DateFieldInfo
Visual Basic (Usage)Copy Code
Dim instance As GcDateTimeCellType
Dim value As DateFieldInfo
 
instance.DefaultActiveField = value
 
value = instance.DefaultActiveField
C# 
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.
C#Copy Code
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;
VB.NETCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.