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


Glossary Item Box

Gets or sets the type of border style for the drop-down list.

Syntax

Visual Basic (Declaration) 
Public Property ListBorderStyle As BorderStyle
Visual Basic (Usage)Copy Code
Dim instance As MultiColumnComboBoxCellType
Dim value As BorderStyle
 
instance.ListBorderStyle = value
 
value = instance.ListBorderStyle
C# 
public BorderStyle ListBorderStyle {get; set;}

Example

This example sets which column to use for the edit portion of the combo box and which list column serves as the data column in the combo box.
C#Copy Code
FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType mc = new
FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType();
mc.DataSourceList = ds;
mc.ListResizeColumns = FarPoint.Win.Spread.CellType.ListResizeColumns.FitWidestItem;
mc.ListWidth = 860;
mc.ListBorderStyle = BorderStyle.Fixed3D;
mc.ShowColumnHeaders = false;
mc.ShowGridLines = false;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = mc;
Visual BasicCopy Code
Dim mc As New FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType
mc.DataSourceList = ds
mc.ListResizeColumns = FarPoint.Win.Spread.CellType.ListResizeColumns.FitWidestItem
mc.ListWidth = 860
mc.ListBorderStyle = BorderStyle.Fixed3D
mc.ShowColumnHeaders = False
mc.ShowGridLines = False

FpSpread1.ActiveSheet.Cells(0, 0).CellType = mc

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.