Spread for ASP.NET 11 Product Documentation
ShowPopupButton Property (CurrencyCellType)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CurrencyCellType Class : ShowPopupButton Property
Gets or sets whether the editor supports showing a pop-up control.
Syntax
'Declaration
 
Public Overrides Property ShowPopupButton As Boolean
'Usage
 
Dim instance As CurrencyCellType
Dim value As Boolean
 
instance.ShowPopupButton = value
 
value = instance.ShowPopupButton
public override bool ShowPopupButton {get; set;}
Example
This example shows a pop-up button when the cell is in edit mode.
FarPoint.Web.Spread.CurrencyCellType c = new FarPoint.Web.Spread.CurrencyCellType();
System.Globalization.NumberFormatInfo nfi = new System.Globalization.NumberFormatInfo();
nfi.NumberDecimalDigits = 3;
nfi.NumberDecimalSeparator = ",";
nfi.CurrencySymbol = "$";
c.NumberFormat = nfi;
c.ShowPopupButton = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = 234.56;
Dim c As New FarPoint.Web.Spread.CurrencyCellType
Dim nfi As New System.Globalization.NumberFormatInfo
nfi.NumberDecimalDigits = 3
nfi.NumberDecimalSeparator = ","
nfi.CurrencySymbol = "$"
c.NumberFormat = nfi
c.ShowPopupButton = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = c
FpSpread1.ActiveSheetView.Cells(0, 0).Value = 234.56
FpSpread1.ActiveSheetView.Cells(0, 0).Value = DateTime.Now
See Also

Reference

CurrencyCellType Class
CurrencyCellType Members