Svp c'est urgent :(

meriemtti Messages postés 1 Date d'inscription mercredi 22 février 2006 Statut Membre Dernière intervention 11 mai 2006 - 11 mai 2006 à 10:53
TrafMaxime Messages postés 288 Date d'inscription mercredi 4 mai 2005 Statut Membre Dernière intervention 26 janvier 2012 - 11 mai 2006 à 12:18
salut,
je prépare mon projet en vb de fin de formation.
j'ai une datagrid dans la quel j'ai des informations et ce que je veux c'est:
quand je clique sur une ligne da la datagrid les info s'affiche dans des zones de textes pour permettre la modification ou la suppression.
en gros voilà ce que je veux:
** AFFICHER LES INFO D'UNE LIGNE DE LA DATAGRID DANS DES ZONE DE TEXTE ET CELA EN CLICK SUR LA DATAGRID **
merci d'avance,

meri,

3 réponses

Alboure Messages postés 42 Date d'inscription vendredi 10 octobre 2003 Statut Membre Dernière intervention 21 juin 2006
11 mai 2006 à 10:58
Si ca t'interesse, j'ai fait exactement la même chose mais avec une listbox.

Alboure
0
martins13 Messages postés 66 Date d'inscription lundi 10 avril 2006 Statut Membre Dernière intervention 19 juin 2008
11 mai 2006 à 11:26
Tient un code très bien fait sur le site : http://www.vbfrance.com/codes/PETITE-GESTION-CONTACT-ACCESS-NET_16808.aspx
Il fait exactement ce que tu veux faire enfin si j'ai bien compris...
0
TrafMaxime Messages postés 288 Date d'inscription mercredi 4 mai 2005 Statut Membre Dernière intervention 26 janvier 2012 1
11 mai 2006 à 12:18
Voilà la fonction que tu cherches sinon :
'dgridclick est un nom aléatoire que tu peux choisir, par contre ta datagrid s'appelle datagrid1 pour que ça marche..

Private Sub dgridclik(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataGrid1.Click
Try
Dim zu As Integer = DataGrid1.CurrentRowIndex

Catch ex As Exception
End Try
End Sub
.Maytheforcebewithyou.Maxime.
0
Rejoignez-nous