Spread Windows Forms 7.0 Product Documentation
SimpleEdit Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > DateTimeCellType Class : SimpleEdit Property


Glossary Item Box

Gets or sets whether the celltype ignores invalid character input while editing.

Syntax

Visual Basic (Declaration) 
Public Property SimpleEdit As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DateTimeCellType
Dim value As Boolean
 
instance.SimpleEdit = value
 
value = instance.SimpleEdit
C# 
public bool SimpleEdit {get; set;}

Remarks

This property allows for more basic cell editing (similar to a text box).

Example

This example sets the SimpleEdit property.
C#Copy Code
FarPoint.Win.Spread.CellType.DateTimeCellType dtest = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dtest.SimpleEdit = true;
dtest.SubEditor = new FarPoint.Win.Spread.CellType.SpreadMonthCalendar();
fpSpread1.Sheets[0].Cells[0, 0].CellType = dtest;

FarPoint.Win.Spread.CellType.DateTimeCellType dtest1 = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dtest1.SimpleEdit = true;
dtest1.SubEditor = new FarPoint.Win.Spread.CellType.SpreadDropDownMonthCalendar();
fpSpread1.Sheets[0].Cells[0, 1].CellType = dtest1;  
Visual BasicCopy Code
Dim dtest As New FarPoint.Win.Spread.CellType.DateTimeCellType
dtest.SimpleEdit = True
dtest.SubEditor = New FarPoint.Win.Spread.CellType.SpreadMonthCalendar
FpSpread1.Sheets(0).Cells(0, 0).CellType = dtest

Dim dtest1 As New FarPoint.Win.Spread.CellType.DateTimeCellType
dtest1.SimpleEdit = True
dtest1.SubEditor = New FarPoint.Win.Spread.CellType.SpreadDropDownMonthCalendar
FpSpread1.Sheets(0).Cells(0, 1).CellType = dtest1

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.