回复 1楼sie的帖子
实现代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.c1FlexGrid1.KeyPress += c1FlexGrid1_KeyPress;
- }
- void c1FlexGrid1_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (e.KeyChar == '\r')
- {
- e.Handled = true;
- this.c1FlexGrid1.Row += 1;
- }
- }
复制代码
注意添加最后一行判断,需要跳转到下一列第一行。
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢 |