回复 4楼jinqiong的帖子
请尝试以下代码:
- FarPoint.Win.Spread.InputMap inputmap1;
- inputmap1 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.PageUp, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToFirstRow);
- FarPoint.Win.Spread.InputMap inputmap2;
- inputmap2 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- inputmap2.Put(new FarPoint.Win.Spread.Keystroke(Keys.PageDown, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToLastRow);
复制代码 |