Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / MultiColumnComboBoxCellType Class / DataColumnName Property
Example


In This Topic
    DataColumnName Property
    In This Topic
    Gets or sets which list column (by name) serves as the data portion of the combo box.
    Syntax
    'Declaration
     
    Public Property DataColumnName As String
    'Usage
     
    Dim instance As MultiColumnComboBoxCellType
    Dim value As String
     
    instance.DataColumnName = value
     
    value = instance.DataColumnName
    public string DataColumnName {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.
    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;
    
    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
    See Also