I've been searching around and really can't seem to get this to work.
I have a datagridview that shows records and I want any row in the grid to change color based on a certain condition.
basically if dg.Columns(9).Value.ToString = "Y" Then
e.CellStyle.BackColor = Color.Red
I;m not sure how to loop through the grid and check that column.
any help would be appreciated.
Thanks
I have a datagridview that shows records and I want any row in the grid to change color based on a certain condition.
basically if dg.Columns(9).Value.ToString = "Y" Then
e.CellStyle.BackColor = Color.Red
I;m not sure how to loop through the grid and check that column.
any help would be appreciated.
Thanks