回复 3楼sakeryu的帖子
修正一下二楼中 代码:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.InputMap inputmap1 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); // Assign the InputMap object to the existing map.inputmap1 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- // Map the Enter key.
- inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
- // Create another InputMap object.
- FarPoint.Win.Spread.InputMap inputmap2;
- // Assign this InputMap object to the existing map.
- inputmap2 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- // Map the Enter key.
- inputmap2.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
- }
复制代码 |