Spread Windows Forms 10.0 Product Documentation
ShowDropDownMenuStrip Property
Example 


Gets or sets whether the cell type displays the drop-down menu button.
Syntax
'Declaration
 
Public Property ShowDropDownMenuStrip As Boolean
'Usage
 
Dim instance As FilterBarCellType
Dim value As Boolean
 
instance.ShowDropDownMenuStrip = value
 
value = instance.ShowDropDownMenuStrip
public bool ShowDropDownMenuStrip {get; set;}
Example
This example uses the ShowDropDownMenuStrip property.
//Customize "Cells" in Filter Bar
FarPoint.Win.Spread.SheetView sheetView = fpSpread1.ActiveSheet;
sheetView.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;
sheetView.FilterBar.Cells[0].Border = new FarPoint.Win.DoubleLineBorder(Color.Red);
sheetView.FilterBar.Cells[0].BackColor = Color.GreenYellow;
sheetView.FilterBar.Cells[0].CellType = new FarPoint.Win.Spread.CellType.FilterBarCellType();
sheetView.FilterBar.DefaultStyle.Border = new FarPoint.Win.DoubleLineBorder(Color.Yellow);
FarPoint.Win.Spread.CellType.FilterBarCellType cellType = new FarPoint.Win.Spread.CellType.FilterBarCellType();
cellType.ShowDropDownMenuStrip = false;
sheetView.FilterBar.Cells[3].CellType = cellType;
sheetView.FilterBar.Height = 30;
sheetView.FilterBarHeaderStyle.Border = new FarPoint.Win.DoubleLineBorder(Color.Red);
sheetView.FilterBarHeaderStyle.BackColor = Color.Yellow;     
fpSpread1.ActiveSheet.Cells[0, 0, 2, 5].Text = "Test";
fpSpread1.ActiveSheet.Cells[3, 0, 5, 5].Text = "A";
'Customize "Cells" in Filter Bar
Dim sheetView As FarPoint.Win.Spread.SheetView = FpSpread1.ActiveSheet
sheetView.AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar
sheetView.FilterBar.Cells(0).Border = New FarPoint.Win.DoubleLineBorder(Color.Red)
sheetView.FilterBar.Cells(0).BackColor = Color.GreenYellow
sheetView.FilterBar.Cells(0).CellType = New FarPoint.Win.Spread.CellType.FilterBarCellType()
sheetView.FilterBar.DefaultStyle.Border = New FarPoint.Win.DoubleLineBorder(Color.Yellow)
Dim cellType As New FarPoint.Win.Spread.CellType.FilterBarCellType()
cellType.ShowDropDownMenuStrip = False
sheetView.FilterBar.Cells(3).CellType = cellType
sheetView.FilterBar.Height = 30
sheetView.FilterBarHeaderStyle.Border = New FarPoint.Win.DoubleLineBorder(Color.Red)
sheetView.FilterBarHeaderStyle.BackColor = Color.Yellow
FpSpread1.ActiveSheet.Cells(0, 0, 2, 5).Text = "Test"
FpSpread1.ActiveSheet.Cells(3, 0, 5, 5).Text = "A"
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FilterBarCellType Class
FilterBarCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.