回复 3楼kinglee6446的帖子
你可以尝试使用 fpSpread1_EditModeOn 事件来截获SetActiveCell动作。在我这边测试没问题。
- public Form1()
- {
- InitializeComponent();
- this.fpSpread1.EditModeOn += new EventHandler(fpSpread1_EditModeOn);
- this.fpSpread1.EditModePermanent = true;
- }
- void fpSpread1_EditModeOn(object sender, EventArgs e)
- {
- }
- private void rightToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].SetActiveCell(this.fpSpread1.Sheets[0].ActiveRowIndex + 1, 0);
- }
复制代码 |