我想在评委1-评委7的评分中,在每行中找到最大值和最小值,分别用自定义样式 e.Style = "最大值" ,e.Style = "最小值",显示出来,请问应该怎样弄
If e.Col.Name.Contains("评委") Then
Dim min As Double = 99999
Dim max As Double
For Each dc As Col In e.Table.Cols
If dc.Name.Contains("评委") Then
If e.Row(dc.Name) > max Then
e.Style = "最大值"
If e.Row(dc.Name) < min Then
e.Style = "最小值"
End If
End If
End If
Next
End If