- FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
- cb.DataSource = db.fault_knowledge_catalog.ToList();
- cb.DataMember = "ID";
- cb.DataTextField = "Name";
- int i=0;
- FpSpread1.ActiveSheetView.Cells[i, 5].Value = 1;
- FpSpread1.ActiveSheetView.Cells[i, 5].CellType = cb;
复制代码
设置好了类型, 然后设置Value, 下拉列表为空, 请问如何解决? |
|