回复 1楼miyaminn的帖子
你在另外一个帖子问过类似的问题:
http://gcdn.gcpowertools.com.cn/showtopic-16107.html
这是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");
- }
- }
复制代码 |