shenqiumonkey 你好,
你太客气了,很高兴我的回答能够对你有所帮助。
1.CellType想让后面写上文字:可以使用相应 Cell 的 Text 属性进行设置。
- this.FpSpread1.Sheets[0].Cells[0,1].Text="测试";
复制代码
2.下拉框里面赋初始值:
- if (!IsPostBack)
- {
- 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.ShowButton = true;
- cb.Items=cbstr;
- this.FpSpread1.Sheets[0].Columns[1].CellType=cb;
- this.FpSpread1.Sheets[0].Cells[0, 1].Value = 2;
- }
复制代码
3.提取 TextCellType 的值:只需要取对应单元格的 Text 属性即可。 |