Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/06/2010, 04:50
Avatar de Sergio18
Sergio18
 
Fecha de Ingreso: abril-2010
Ubicación: No quieras saberlo
Mensajes: 94
Antigüedad: 14 años, 11 meses
Puntos: 0
Respuesta: enlazando un datagridview con textbox

Yo utlizo este codigo:

Código vb:
Ver original
  1. Private Sub Grid1_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles Grid1.CellContentClick
  2.  
  3.         Me.textbox.Text = Me.Grid1.Rows(e.RowIndex).Cells(0).Value()
  4.         Me.textbox.Text = Me.Grid1.Rows(e.RowIndex).Cells(1).Value()

Saludos