回复 2楼zpf290079626的帖子
可以使用 ComoboCellType 的 AutoPostback 属性来实现:
-
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.ComboBoxCellType c = new FarPoint.Web.Spread.ComboBoxCellType(new String[] { "One", "Two", "Three" });
- c.AutoPostBack = true;
- c.ShowButton = true;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c;
- }
- protected void FpSpread1_ButtonCommand1(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- FpSpread1.Sheets[0].Cells[0, 1].Locked = !FpSpread1.Sheets[0].Cells[0, 1].Locked;
- }
复制代码
Demo:VS2013 + Spread for ASP.NET 7.0 V3
12653.zip
(7.51 KB, 下载次数: 664)
|