yyd0476 你好,
请尝试下面代码:
- string[]cbstr;
- string[]strval;
- cbstr=new String[]{"One","Two","Three"};
- strval=new String[]{"1","2","3"};
- FarPoint.Web.Spread.ComboBoxCellType cb=new FarPoint.Web.Spread.ComboBoxCellType();
- cb.Items=cbstr;
- FpSpread1.ActiveSheetView.Columns[0].CellType=cb;
复制代码 |