回复 1楼raysoft的帖子
raysoft 你好,
请问想通过 ComboBox 实现哪些功能呢?Spread 提供单元格 ComboBoxCellType。测试代码:
- string[]cbstr;
- string[]strval;
- cbstr=newString[]{"One","Two","Three"};
- strval=newString[]{"1","2","3"};
- FarPoint.Web.Spread.ComboBoxCellTypecb=newFarPoint.Web.Spread.ComboBoxCellType();
- cb.Items=cbstr;
- FpSpread1.ActiveSheetView.Columns[0].CellType=cb;
- FpSpread1.ActiveSheetView.DataModel.SetValue(0,0,1);
- TextBox1.Text=cb.EditorClientScriptUrl;
复制代码 |