Datagridview单元焦点事件 [英] Datagridview cell focus event

查看:509
本文介绍了Datagridview单元焦点事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VB.NET 2008中使用了Datagridview,并且我想在该Datagridview上添加客户账单.
实际上,我想在文本框中输入客户名称,然后将购买的商品一一输入到datagridview行中.
所有操作必须通过ENTER,LEFT,RIGHT,UP,DOWN键完成.如果按单元格进入第一个记录单元,它将转到最后一行,然后按ENTER键之后,必须转到下一行的第一单元.
请帮助我!!!!

I have used Datagridview in VB.NET 2008,and I want to add customers bill on that Datagridview.
Actually I want to give the customer name to the textbox and the purchased items are entered into the datagridview rows one by one.
All the operations must be done by ENTER,LEFT,RIGHT,UP,DOWN keys.If entering into first record cell by cell it will go to the last row then after pressing ENTER key it must be go to the first cell of next row.
Please help me !!!!

推荐答案

在这里您要走

DataGridView:将Enter键移至下一列 [ ^ ]

现在轮到你了.....自己编写代码做其他事情
Here you go

DataGridView: Make Enter Key Move to Next Column[^]

now your turn.....write code yourself for other things


这篇关于Datagridview单元焦点事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆