Ver Mensaje Individual
  #11 (permalink)  
Antiguo 04/02/2011, 13:03
alexgonzalez
 
Fecha de Ingreso: enero-2009
Mensajes: 112
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: combo box y textbox

una consulta tengo este codigo y no entiendo porque se cargan los datos en mi texbox cuando pulso algunas celdas y cuando pulso otras no..

txtCodigo.Text = dtgDetalle.CurrentRow.Cells[0].Value.ToString();
txtNombres.Text = dtgDetalle.CurrentRow.Cells[1].Value.ToString();
txtDireccion.Text = dtgDetalle.CurrentRow.Cells[2].Value.ToString();
txtTelefono.Text = dtgDetalle.CurrentRow.Cells[3].Value.ToString();
txtCelular.Text = dtgDetalle.CurrentRow.Cells[4].Value.ToString();
txtEmail.Text = dtgDetalle.CurrentRow.Cells[5].Value.ToString();
cboProfesion.Text = dtgDetalle.CurrentRow.Cells[6].Value.ToString();
cboPais.Text = dtgDetalle.CurrentRow.Cells[7].Value.ToString();