更新时间:2023-12-04 13:23:22
可以在此链接上找到解决方案选择时datagridview vb.net中有多行,有些行没有删除? [ ^ ]
你可以做一个Foreach(DataGrid.SelectedItems中的Datagridrow行)
{
}
这将获得所有这些。
Hi Team,
while selecting multiple rows in datagridview vb.net some rows not executing in for loop.
Example:
For item As Integer = 0 To DataGrid.RowCount - 1 Step 1
If DataGrid.Rows(item).Selected Then
Solution can be found on this link While selecting multiple rows in datagridview vb.net, some of the row not deleting?[^]
you can do aForeach (Datagridrow row in DataGrid.SelectedItems) { }
this will get all of them.