Julie_Zhao 你好,ComboboxCellType 下属性 AutoPostBack 配合 FpSpread1_ButtonCommand 可以实现该需求,测试代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- FarPoint.Web.Spread.ComboBoxCellType comboCellType = new FarPoint.Web.Spread.ComboBoxCellType();
- comboCellType.AutoPostBack = true;
- comboCellType.ShowButton = true;
- string[] list = new string[3] {"1","2","3"};
- comboCellType.Items = list;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = comboCellType;
- }
- protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- }
复制代码 |