Julie_Zhao 你好,很高兴能够和你讨论问题。
关于触发 ButtonCommand 事件的思路是正确的,这时需要设置 CheckBoxCellType 单元格类型的 AutoPostBack 属性为 true,下面是我的测试代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- FarPoint.Web.Spread.CheckBoxCellType checkBoxCellType = new FarPoint.Web.Spread.CheckBoxCellType();
- checkBoxCellType.AutoPostBack = true;
- this.FpSpread1.ActiveSheetView.Columns[0].CellType = checkBoxCellType;
- }
- protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- }
复制代码 |