2
Answers

highlight only all ´ON´ datagridview line

Israel

Israel

7y
189
1
Hi!
 
How can I highlight all datagridview line that appear with ´ON´ on the view´s column. See what I saw googling but it´s in VB. Could you covert it in c# please:
 
For f As Integer = 0 To DataGridView1.Rows.Count - 1 Dim view As Integer = Val(DataGridView1.Rows(f).Cells(1).Value) If view > 10000 Then DataGridView1.Rows(f).DefaultCellStyle.BackColor = Color.Red End If Next
Or if anyone have an idea with some tutorial code please let me know. I need to learn how to do it. 
 
 Thank you!
Israel. 
 

Answers (2)