Spread Windows Forms 12.0 Product Documentation
AllowSelection Property (DropDownCalendar)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DropDownCalendar Class : AllowSelection Property
Gets or sets the type of dates that allow selection.
Syntax
'Declaration
 
Public Property AllowSelection As AllowSelection
'Usage
 
Dim instance As DropDownCalendar
Dim value As AllowSelection
 
instance.AllowSelection = value
 
value = instance.AllowSelection
public AllowSelection AllowSelection {get; set;}

Property Value

An AllowSelection value that indicates the type of dates that allow selection.
The default is AllowSelection.Anyday.
Remarks
This property determines which kind of dates can be selected.
Example
This example uses the AllowSelection property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
datecell.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday;
datecell.DropDownCalendar.EmptyRows = GrapeCity.Win.Spread.InputMan.CellType.EmptyRows.AllAtEnd;
datecell.DropDownCalendar.FirstDayOfWeek = GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.Friday;
datecell.DropDownCalendar.FlatStyle = FlatStyle.Popup;
datecell.DropDownCalendar.HeaderStyle = new GrapeCity.Win.Spread.InputMan.CellType.Style(Color.Crimson, Color.Black);
datecell.DropDownCalendar.NavigatorOrientation = GrapeCity.Win.Spread.InputMan.CellType.NavigatorOrientation.Bottom;
datecell.DropDownCalendar.ShowNavigator = GrapeCity.Win.Spread.InputMan.CellType.CalendarNavigators.ScrollBar;
datecell.DefaultActiveField = datecell.Fields[2];
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
datecell.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday
datecell.DropDownCalendar.EmptyRows = GrapeCity.Win.Spread.InputMan.CellType.EmptyRows.AllAtEnd
datecell.DropDownCalendar.FirstDayOfWeek = GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.Friday
datecell.DropDownCalendar.FlatStyle = FlatStyle.Popup
datecell.DropDownCalendar.HeaderStyle = New GrapeCity.Win.Spread.InputMan.CellType.Style(Color.Crimson, Color.Black)
datecell.DropDownCalendar.NavigatorOrientation = GrapeCity.Win.Spread.InputMan.CellType.NavigatorOrientation.Bottom
datecell.DropDownCalendar.ShowNavigator = GrapeCity.Win.Spread.InputMan.CellType.CalendarNavigators.ScrollBar
datecell.DefaultActiveField = datecell.Fields(2)
See Also

Reference

DropDownCalendar Class
DropDownCalendar Members