Remplir un textbox d'une datagridview

elwadeh Messages postés 55 Date d'inscription samedi 11 avril 2009 Statut Membre Dernière intervention 28 juin 2018 - 17 avril 2011 à 05:04
elwadeh Messages postés 55 Date d'inscription samedi 11 avril 2009 Statut Membre Dernière intervention 28 juin 2018 - 17 avril 2011 à 06:40
Bonjour,
comment je peux affecter le contenu d'une cellule d'un datagridview à un textbox

1 réponse

elwadeh Messages postés 55 Date d'inscription samedi 11 avril 2009 Statut Membre Dernière intervention 28 juin 2018 1
17 avril 2011 à 06:40
après une pénible recherche j'ai trouvé enfin la solution et voilà a qui cherche aussi la solution:

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

Me.TextBox1.Text = DataGridView1.SelectedCells(0).Value

End Sub
0
Rejoignez-nous