找回密码
 立即注册

QQ登录

只需一步,快速开始

zy2164867

中级会员

13

主题

27

帖子

756

积分

中级会员

积分
756

活字格认证

zy2164867
中级会员   /  发表于:2012-5-16 20:20  /   查看:5573  /  回复:1
那Spread的ComboBoxCellType与.net 标准的ComboBox对应的textchanged事件,和下拉框打开的方法怎么表示?

1 个回复

倒序浏览
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2012-5-17 10:20:00
沙发
通过以下代码可以获得DropDown和TextChanged事件:
  1.         private void fpSpread1_EditModeOn(object sender, EventArgs e)
  2.         {
  3.             FarPoint.Win.FpCombo cmb = fpSpread1.EditingControl as FarPoint.Win.FpCombo;
  4.             if (cmb != null)
  5.             {
  6.                 cmb.DropDown -= new FarPoint.Win.DropDownEventHandler(cmb_DropDown);
  7.                 cmb.DropDown += new FarPoint.Win.DropDownEventHandler(cmb_DropDown);
  8.                 cmb.TextChanged -= new EventHandler(cmb_TextChanged);
  9.                 cmb.TextChanged += new EventHandler(cmb_TextChanged);
  10.             }
  11.         }
  12.         void cmb_DropDown(object sender, FarPoint.Win.DropDownEventArgs e)
  13.         {
  14.             
  15.         }
  16.         void cmb_TextChanged(object sender, EventArgs e)
  17.         {
  18.         }
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部