本文介绍了DataGridView问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我选中网格的复选框并单击按钮时,如何隐藏或删除网格中的行.我有此代码,请完成它
How can I hide or remove a row in grid when I checked its checkbox and click button. I have this code, please complete it
Dim a As HomePage = New HomePage
Dim i As Integer
For i = 0 To grdtaiid.Rows.Count - 1
selectedkod = grdtaiid.Item(1, i).Value
selectedTaiid = grdtaiid.Item(0, i).Value
If grdtaiid.Item(0, i).Value Then
a.updateTaiid(grdtaiid.Item(0, i).Value, txtdate.Text)
End If
Next
推荐答案
这篇关于DataGridView问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!