参考下面的代码
- var template = Template.CreateGridTemplate(5);
- this.gcMultiRow1.Template = template;
- this.gcMultiRow1.RowCount = 5;
- // 取消一些默认的快捷键
- this.gcMultiRow1.ShortcutKeyManager.Unregister(Keys.Enter);
- this.gcMultiRow1.ShortcutKeyManager.Unregister(Keys.Tab);
- // 使用自定义的快捷键
- this.gcMultiRow1.ShortcutKeyManager.Register(SelectionActions.MoveToNextCell, Keys.Tab | Keys.Enter);
- this.gcMultiRow1.ShortcutKeyManager.Register(SelectionActions.MoveToPreviousCell, Keys.Tab | Keys.Shift)
复制代码 |