3
row.Cells(0).Style.BackColor = Color.Red 'RGB(1, 1, 1)

El rgb no me lo acepta. Como haría en este caso?

2 respuestas 2

3

Intenta lo siguiente:

row.Cells(0).Style.BackColor = Color.FromArgb(1, 1, 1)
1

Si tu DataGridView se llama grilla, utiliza lo siguiente:

en el evento RowEnter de tu grilla, escribe

grilla.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.FromArgb(209, 227, 254);

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.