Hi All
I want to loop through a datagrid and change the row color if a cell has a value is greater then my alarm value
Sum thing like this
I want to loop through a datagrid and change the row color if a cell has a value is greater then my alarm value
Sum thing like this
Code:
Dim Alarm1 as string = "245.00"
For Each band As Forms.DataGridViewBand In DG1.Items
If DG1.Items(band.Index).Cells("Down Stream").Value > Alarm1 Then
band.DefaultCellStyle.BackColor = System.Drawing.Color.Red
End If
Next