If e.Row.Checked Then
Dim Cols1() As String = {"年级","班级","学生姓名","性别","联系电话"}
Dim Cols2() As String = {"年级","班级","学生姓名","性别","联系电话"}
Dim dr2 As DataRow = DataTables("学生核酸检测").AddNew()
For i As Integer = 0 To Cols1.Length -1
dr2(Cols2(i)) = e.Row(Cols1(i))
Next
Else
DataTables("学生核酸检测").deletefor("年级='" & e.Row("年级") & "' and 班级='" & e.Row("班级") & "' and 学生姓名='" & e.Row("学生姓名") & "' and 性别='" & e.Row("性别") & "' and 联系电话='" & e.Row("联系电话") & "' ")
End If
If forms("xxx").Opened Then
Forms("xxx").Controls("标签").text = e.Table.GetCheckedRows.count
End If