I try :
- Code: Select all
With Me.DataGridView1
.Rows(10).DefaultCellStyle.BackColor = Color.Red
.Columns(2).DefaultCellStyle.BackColor = Color.Red
End With
It is ok with the Column, it appears in Red but the Row don't change.
It is a bound datagridview and the row index = 10 exists when it come on this code.
I try with a standard DataGridView and it is ok with the Column and with the Row.
Is it a bug ?
Dominique