通过以下代码可以获得DropDown和TextChanged事件:- private void fpSpread1_EditModeOn(object sender, EventArgs e)
- {
- FarPoint.Win.FpCombo cmb = fpSpread1.EditingControl as FarPoint.Win.FpCombo;
- if (cmb != null)
- {
- cmb.DropDown -= new FarPoint.Win.DropDownEventHandler(cmb_DropDown);
- cmb.DropDown += new FarPoint.Win.DropDownEventHandler(cmb_DropDown);
- cmb.TextChanged -= new EventHandler(cmb_TextChanged);
- cmb.TextChanged += new EventHandler(cmb_TextChanged);
- }
- }
- void cmb_DropDown(object sender, FarPoint.Win.DropDownEventArgs e)
- {
-
- }
- void cmb_TextChanged(object sender, EventArgs e)
- {
- }
复制代码 |