找回密码
 立即注册

QQ登录

只需一步,快速开始

婧友521

银牌会员

28

主题

59

帖子

3423

积分

银牌会员

积分
3423

活字格认证

婧友521
银牌会员   /  发表于:2012-6-19 09:35  /   查看:5383  /  回复:1
我在spread的一个comobox下拉框中加载了一些选项,想问怎样通过我selcted 选中某项后comobox
重新加载新的选项?

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2012-6-19 10:52:00
沙发
回复 1楼婧友521的帖子
实现方法如下:
  1. protected void Page_Load(object sender, EventArgs e)
  2.         {
  3.             FarPoint.Web.Spread.ComboBoxCellType c = new FarPoint.Web.Spread.ComboBoxCellType(new String[] { "One", "Two", "Three" });
  4.             //selecchanged 变化后触发 FpSpread1_ButtonCommand 事件
  5.             c.AutoPostBack = true;
  6.             c.ShowButton = true;
  7.             FpSpread1.ActiveSheetView.Cells[0, 0].CellType = c;
  8.         }

  9.         protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
  10.         {
  11.             //在这里实现逻辑
  12.         }
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部