您好设置 ccc.EditorValue = EditorValue.ItemData;
- ComboBoxCellType ccc = new ComboBoxCellType();
- ccc.EditorValue = EditorValue.ItemData;
- ccc.Items = (new String[] { "January", "February", "March", "April", "May", "June" });
- ccc.ItemData = (new String[] { "1", "2", "3", "4", "5", "6" });
- fpSpread1.ActiveSheet.Cells[0, 0].CellType = ccc;
- fpSpread1.ActiveSheet.Cells[0, 0].Value = "4";
复制代码 |