Mi grilla se llama DgUsuarios
Código vb:
Ver original
' Selecciono dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).Selected = True ' Coloreo dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).DefaultCellStyle.BackColor = Color.Aqua
Hasta aqui todo ok, se puede seleccionar, lo que no logro es DESELECCIONAR la fila, me imagino que necesito saber el estado de esta he probado con
Código vb:
Ver original
Msgbox(dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).Selected) If dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).Selected Then dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).Selected = False dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).DefaultCellStyle.BackColor = Color.White Else dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).Selected = True dgUsuarios.Rows(Me.dgUsuarios.CurrentRow.Index).DefaultCellStyle.BackColor = Color.Aqua End If
Pero todas las filas las seleccionadas y no, me arroja "TRUE"
Tambien quisiera saber como hacer para seleccionar la fila con "La barra espaciadora" pero por partes xD primero con el problema anterior, Dond estan los mounstruos en ComputaCION!!!!!

PD: Que evento es no se olviden gracias xD