该功能可以通过以下代码来实现:
首先通过外部事件来设置EditMode = true- private void btnEdit_Click(object sender, EventArgs e)
- {
- this.fpSpread1.EditMode = true;
- }
复制代码 然后在EditModeOn事件中来设置DroppedDown = true- private void fpSpread1_EditModeOn(object sender, EventArgs e)
- {
- FarPoint.Win.FpCombo cmb = fpSpread1.EditingControl as FarPoint.Win.FpCombo;
- if (cmb != null)
- {
- cmb.DroppedDown = true;
- }
- }
复制代码 |