Dim pdr As DataRow = e.Row.DataRow.GetParentRow("表b")If pdr Is Nothing OrElse pdr.IsNull("第一列") OrElse pdr.IsNull("第二列") Then e.Cancel = TrueEnd If