您好,
可以参考以下代码- [Visual Basic]
- Dim cbstr As string( )
- cbstr = new String() {"Jan", "Feb", "Mar", "Apr", "May", "Jun"}
- Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
- cmbocell.Items = cbstr
- cmbocell.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter
- cmbocell.Editable = True
- cmbocell.MaxDrop = 4
- FpSpread1.ActiveSheet.Cells(0, 0).CellType = cmbocell
复制代码 |