If e.DataCol.Name = "逻辑列名" If e.DataRow("逻辑列名") = True Then Dim dr As DataRow = DataTables("表B").AddNew For Each dc As DataCol In DataTables("表B").DataCols dr(dc.Name) = e.DataRow(dc.Name) Next Else DataTables("表B").deletefor("编号 = '" & e.DataRow("编号") & "'") End If End If