Spread Windows Forms 11.0 Product Documentation
FieldsEditMode Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : FieldsEditMode Property
Gets or sets the fields edit mode.
Syntax
'Declaration
 
Public Property FieldsEditMode As FieldsEditMode
'Usage
 
Dim instance As GcDateTimeCellType
Dim value As FieldsEditMode
 
instance.FieldsEditMode = value
 
value = instance.FieldsEditMode
public FieldsEditMode FieldsEditMode {get; set;}

Property Value

A GcDateTime.FieldsEditMode enumeration value that indicates the fields edit mode.
The default is GrapeCity.Win.Spread.InputMan.CellTypeEditMode.LeftSide.
Remarks
The FieldsEditMode property determines how to edit fields when the user enters data.
Example
This example uses the FieldsEditMode property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
datecell.FieldsEditMode = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditMode.RightSide;
datecell.ExcelExportFormat = "MM/dd/yy";
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.AutoConvert = true;
textcell.FormatString = "A";
fpSpread1.Sheets[0].Cells[1, 1].CellType = textcell;
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
datecell.FieldsEditMode = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditMode.RightSide
datecell.ExcelExportFormat = "MM/dd/yy"
fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell

Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.AutoConvert = True
textcell.FormatString = "A"
fpSpread1.Sheets(0).Cells(1, 1).CellType = textcell
See Also

Reference

GcDateTimeCellType Class
GcDateTimeCellType Members