vb.net datagridview checkbox 选择数据及删除示例
vb.net datagridview checkbox 选择数据及删除示例 核心代码: Try If MsgBox("您确定要删除选择的数据吗? ", MsgBoxStyle.Question + MsgBoxStyle.OkCancel, "温馨提示") = 1 Then Dim str As String = String.Empty Me.DataGridView1.ReadOnly = True Dim tempIndex As Integer = DataGridView1.FirstDisplayedScrollingRowIndex For i As Integer = Me.DataGridView1.Rows.Count - 1 To 0 Step -1 Dim cbx As DataGridViewCheckBoxCell = DirectCast(Me.DataGridV