Spread Windows Forms 12.0 Product Documentation
ListResizeColumns Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : ListResizeColumns Enumeration
Specifies how the columns in the drop-down list are sized when displayed.
Syntax
'Declaration
 
Public Enum ListResizeColumns 
   Inherits System.Enum
'Usage
 
Dim instance As ListResizeColumns
public enum ListResizeColumns : System.Enum 
Members
MemberDescription
ByDataType[1] Sizes columns based on their data type
FitWidestItem[2] Sizes the columns by fitting the widest item
None[0] Does not size the columns
Example
This example creates a multiple column combo cell.
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;
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
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.ListResizeColumns

See Also

Reference

FarPoint.Win.Spread.CellType Namespace