Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/06/2011, 11:42
Avatar de websistems
websistems
 
Fecha de Ingreso: octubre-2010
Mensajes: 69
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: :.Net 2010 Obtener el codigo de un articulos al seleccionarlo del datagrid

disculpa la demora en responder, si me sirvio gracias, solo que al programarlo en el evento que tu me indicaste.

Private Sub TuDataGridView_CellContentClick(sender As Object, e As DataGridViewCellEventArgs)

End Sub

a veces me cogia, a veces no, no se por que pero al programarlo en este evento (cellclick) , va muy bien

Gracias


Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick

txtPrueba.Text = TuDataGridView.CurrentRow.Cells(0).Value.ToString( )

End Sub