回复 2楼babyface的帖子
你好,
测试代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
- // Define the operation of pressing Enter key in cells not being edited as "Move to the next row".
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
- // Define the operation of pressing Enter key in cells being edited as "Move to the next row".
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
- }
复制代码 |