zxfreg 发表于 2017-5-19 15:58:28

屏蔽delete键

http://gcdn.gcpowertools.com.cn/data/attachment/forum/201705/18/155747uonvtytrrrioou31.jpg选中一行的时候,怎样屏蔽delete键操作?

dexteryao 发表于 2017-5-19 18:05:17

把Delete的Action移除掉
gcSpreadSheet1.View.KeyMap.Remove(new KeyStroke(Key.Delete, ModifierKeys.None));

zxfreg 发表于 2017-5-23 15:25:44

dexteryao 发表于 2017-5-19 18:05
把Delete的Action移除掉
gcSpreadSheet1.View.KeyMap.Remove(new KeyStroke(Key.Delete, ModifierKeys.Non ...

问题已解决,谢谢!

dexteryao 发表于 2017-5-23 17:58:32

{:4_86:}
页: [1]
查看完整版本: 屏蔽delete键