回复 3楼miyaminn的帖子
很抱歉,这是Spread的设计。
我们建议你使用如下的方式替换:
代码参考:
- private void fpSpread1_EditModeOn(object sender, System.EventArgs e)
- {
- fpSpread1.EditingControl.KeyDown += new System.Windows.Forms.KeyEventHandler(this.fpSpread1_KeyDown);
- }
- private void fpSpread1_EditModeOff(object sender, System.EventArgs e)
- {
- fpSpread1.EditingControl.KeyDown -= new System.Windows.Forms.KeyEventHandler(this.fpSpread1_KeyDown); }
- private void fpSpread1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- Console.WriteLine("Enter Key-KeyDown");
- }
- }
复制代码 |