If e.Row("序号") = 1 or e.Row("序号") = 3 or e.Row("序号") = 5 or e.Row("序号") = 7 or e.Row("序号") = 9 Then
e.Style = "a"
End If
或者:
Dim Names As New List(Of String) From {"1", "3", "5", "7", "9"}
If Names.Contains(e.Row("序号")) = True Then '判断集合是否包括
e.Style = "a"
End If
[此贴子已经被作者于2022/10/7 16:57:34编辑过]