row.Cells(0).Style.BackColor = Color.Red 'RGB(1, 1, 1)
The RGB does not accept it. How would you do in this case?
row.Cells(0).Style.BackColor = Color.Red 'RGB(1, 1, 1)
The RGB does not accept it. How would you do in this case?
Try the following:
row.Cells(0).Style.BackColor = Color.FromArgb(1, 1, 1)
If your DataGridView is called a grid, use the following:
in the RowEnter event of your grid, type
grilla.Rows [e.RowIndex] .DefaultCellStyle.BackColor = Color.FromArgb (209, 227, 254);