Spread for ASP.NET 10 Product Documentation
ShowPopupButton Property (DateTimeCellType)
Example 


Gets or sets whether the editor supports showing a pop-up control.
Syntax
'Declaration
 
Public Overrides Property ShowPopupButton As Boolean
'Usage
 
Dim instance As DateTimeCellType
Dim value As Boolean
 
instance.ShowPopupButton = value
 
value = instance.ShowPopupButton
public override bool ShowPopupButton {get; set;}
Example
This example shows a pop-up calendar when the cell is in edit mode.
FarPoint.Web.Spread.DateTimeCellType dt = new FarPoint.Web.Spread.DateTimeCellType();
System.Globalization.DateTimeFormatInfo dtf = new System.Globalization.DateTimeFormatInfo();
dtf.LongDatePattern = "D";
dtf.ShortDatePattern = "M/d/yyyy";
dt.DateTimeFormat = dtf;
dt.MaximumValue = new System.DateTime(2020, 12, 31);
dt.MinimumValue = new System.DateTime(1950, 1, 1);
dt.DropDownControlStyleInfo.BackColor = Color.Beige;
dt.ShowPopupButton = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dt;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = DateTime.Now;
Dim dt As New FarPoint.Web.Spread.DateTimeCellType()
Dim dtf As New System.Globalization.DateTimeFormatInfo()
dtf.LongDatePattern = "D"
dtf.ShortDatePattern = "M/d/yyyy"
dt.DateTimeFormat = dtf
dt.MaximumValue = New System.DateTime(2020, 12, 31)
dt.MinimumValue = New System.DateTime(1950, 1, 1)
dt.DropDownControlStyleInfo.BackColor = Color.Beige
dt.ShowPopupButton = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = dt
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

DateTimeCellType Class
DateTimeCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.