Israel

Israel

  • 693
  • 1.3k
  • 219.4k

highlight only all ´ON´ datagridview line

Jul 12 2017 8:13 PM
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)