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


Glossary Item Box

Gets or sets which list column (by name) serves as the edit portion of the combo box.

Syntax

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

Property Value

String containing the name of the column

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.ColumnEditName = "FName";
mc.DataColumnName = "FName";
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.ColumnEditName = "FName"
mc.DataColumnName = "FName"
FpSpread1.ActiveSheet.Cells(0, 0).CellType = mc

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.