找回密码
 立即注册

QQ登录

只需一步,快速开始

babyface
论坛元老   /  发表于:2013-3-29 14:44:00
6#
回复 3楼iceman的帖子

版主 还在吗?
回复 使用道具 举报
babyface
论坛元老   /  发表于:2013-3-29 13:49:00
5#
回复 3楼iceman的帖子

版主 你好 你给的代码只是让光标没有跳到下一个单元格 但是没有实现在当前单元格回车换行啊  请问当单元格处于编辑状态的时候 如何在点击回车按钮时实现回车功能?
回复 使用道具 举报
babyface
论坛元老   /  发表于:2013-3-29 12:18:00
地板
回复 3楼iceman的帖子

谢谢版主了 用一下试试
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2013-3-29 11:40:00
板凳
回复 2楼babyface的帖子

你好,
测试代码如下:

  1.         private void Form1_Load(object sender, EventArgs e)
  2.         {
  3.             FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();



  4.             // Define the operation of pressing Enter key in cells not being edited as "Move to the next row".

  5.             im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);

  6.             im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);



  7.             // Define the operation of pressing Enter key in cells being edited as "Move to the next row".

  8.             im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);

  9.             im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);

  10.         }
复制代码
回复 使用道具 举报
babyface
论坛元老   /  发表于:2013-3-29 10:58:00
沙发
版主 在不在啊?项目中正在急用 谢谢版主
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部