回复 3楼usst的帖子
测试代码如下:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- string[] cbstr;
- cbstr = new String[] {"Jan", "Feb", "Mar", "Apr", "May", "Jun"};
- FarPoint.Web.Spread.ComboBoxCellType cmbbx = new FarPoint.Web.Spread.ComboBoxCellType(cbstr);
- cmbbx.AutoPostBack = true;
- cmbbx.ShowButton = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = cmbbx;
- }
- protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- this.FpSpread1.ActiveSheetView.AddRows(2, 1);
- }
复制代码 |