更新时间:2021-09-13 07:00:39
我希望自动添加datagridview上的行,而不是像我已经拥有的那样按钮,也许它可以使用标签来操作。这就是我已经拥有但是这可以用一个按钮。
I want the rows on the datagridview to be added automatically and not with a button like I already have, maybe it can operate using a lable instead. this is what i have already but this works with a button.
您只需要决定何时添加新行,哪个事件以及哪些条件。
You only have to decide when to add a new row, which event and which conditions.
如果你想自动添加新行然后添加
DataGridView.AllowUserToAddRows = True
在网格视图中
If you want automatically Added new row then Add
"DataGridView.AllowUserToAddRows = True"
In your Grid view