FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.CellType 名前空間 > MultiColumnComboBoxCellType クラス : DataMemberList プロパティ |
'Declaration Public Property DataMemberList As String
'使用法 Dim instance As MultiColumnComboBoxCellType Dim value As String instance.DataMemberList = value value = instance.DataMemberList
public string DataMemberList {get; set;}
string conStr = "Provider=Microsoft.JET.OLEDB.4.0;data source= D:\\Patients2000.mdb"; string sqlStr = "SELECT * FROM Patients"; System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(conStr); DataSet ds = new DataSet(); System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter(sqlStr, conn); da.Fill(ds); FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType mc = new FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType(); mc.DataSourceList = ds; mc.DataMemberList = "Patients"; fpSpread1.ActiveSheet.Cells[0, 0].CellType = mc;
Dim conStr As String = "Provider=Microsoft.JET.OLEDB.4.0;data source= D:\Patients2000.mdb" Dim sqlStr As String = "SELECT * FROM Patients" Dim conn As New System.Data.OleDb.OleDbConnection(conStr) Dim ds As DataSet = New DataSet() Dim da As New System.Data.OleDb.OleDbDataAdapter(sqlStr, conn) da.Fill(ds) Dim mc As New FarPoint.Win.Spread.CellType.MultiColumnComboBoxCellType mc.DataSourceList = ds mc.DataMemberList = "Patients" FpSpread1.ActiveSheet.Cells(0, 0).CellType = mc