是否可以试下这样是否可以满足需求?- gcMultiRow.ShortcutKeyManager.Register(new MyClear(), Keys.Back);
- public class MyClear : GrapeCity.Win.MultiRow.Action
- {
- public override bool CanExecute(GcMultiRow target)
- {
- if(target.IsCurrentCellInEditMode)
- {
- return false;
- }
- return EditingActions.Clear.CanExecute(target);
- }
- protected override void OnExecute(GcMultiRow target)
- {
- EditingActions.Clear.Execute(target);
- }
- }
复制代码 |