Protected Sub GridView1_DataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
max_num = CInt(DataBinder.Eval(e.Row.DataItem, "volume"))
If (max_num < min_num) Then
'e.Row.BackColor = Color.Orange
e.Row.ForeColor = Color.Orange
End If
If (max_num = min_num) Then
'e.Row.BackColor = Color.Green
e.Row.ForeColor = Color.Green
End If
If (max_num > min_num) Then
'e.Row.BackColor = Color.Red
e.Row.ForeColor = Color.Red
End If
End If
End Sub