If e.Col.name = "第二列" Then If e.text = Nothing Then Dim fdr As DataRow = DataTables("表A").find("第一列 = '" & e.Row("第一列") & "'") If fdr IsNot Nothing Then If fdr("第二列") <> Nothing Then e.Table.DataTable.AddUserStyle("红", color.red, color.black) e.style = "红" End If End If End If End If