Spread for ASP.NET 7.0 Product Documentation
DataSourceID Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > MultiColumnComboBoxCellType Class : DataSourceID Property


Glossary Item Box

Gets or sets the unique identifier of the data source for the MultiColumnComboBoxCellType.

Syntax

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

Remarks

DataSourceID is the control ID of an IDataSource that will be used as the data source.

Example

This example sets the DataSourceID property.
C#Copy Code
FarPoint.Web.Spread.MultiColumnComboBoxCellType mccbct = new FarPoint.Web.Spread.MultiColumnComboBoxCellType();
mccbct.ShowButton = true;
mccbct.DataColumn = 0;
mccbct.ColumnEdit = 1;
mccbct.DataSourceID = "SpreadDataSource1";
FpSpread1.Sheets[0].Cells[0,0].CellType = mccbct;
Visual BasicCopy Code
Dim mccbct As New FarPoint.Web.Spread.MultiColumnComboBoxCellType
mccbct.ShowButton = True
mccbct.DataColumn = 0
mccbct.ColumnEdit = 1
mccbct.DataSourceID = "SpreadDataSource1"
FpSpread1.Sheets(0).Cells(0, 0).CellType = mccbct

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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