如何在datagridview中知道当前行是否为空或在当前行填充时给出创建新行的想法 [英] How To know the current row is empty or not in datagridview or give idea to create new row when current row fill

查看:94
本文介绍了如何在datagridview中知道当前行是否为空或在当前行填充时给出创建新行的想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当要在datagridview的最后一列按Enter键时,我想创建一个新行.然后验证该行是否已填充.

I want to create a new row when the enter key press at the last column of datagridview. Then validate the row whether it is filled or not. if it is filled all the cells in the current row means it want to create new row or not create the new row.

推荐答案

为什么每个菜鸟都尝试使用DataGridView供用户输入?别.最好使用单独的形式输入数据,而不是尝试将DGV塞入非常严格的验证和编辑要求中.
Why does every noob try to use the DataGridView for user input?? Don''t. It''s better to use a seperate form for data entry than to try and shoehorn the DGV into very tight validation and editing requirements.


这篇关于如何在datagridview中知道当前行是否为空或在当前行填充时给出创建新行的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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