Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/03/2020, 16:53
Avatar de frankjoel86
frankjoel86
 
Fecha de Ingreso: noviembre-2008
Ubicación: Ica
Mensajes: 295
Antigüedad: 15 años, 5 meses
Puntos: 0
CellContentClick

Saludos gentita, al hacer clic en el datgridview muestra los datos en el textbox, pero al seleccionar el siguiente registro no selecciona, al tercer click en otro registro si selecciona muestro el code:

private void dgv1_CellContentClick(object sender, DataGridViewCellEventArgs e)

txtCodigo.Text = dgv1.CurrentRow.Cells[0].Value.ToString();
txtCentroCosto.Text = dgv1.CurrentRow.Cells[1].Value.ToString();
txtdesCentroCosto.Text = dgv1.CurrentRow.Cells[2].Value.ToString();

Bienvenido cualquier sugerencia.
__________________
www.basritours.com
Agencia de turismo en Ica.