Bonjour,
voila j'ai un soucis,
je cherche à remplir un datagridview donc jusque là pas de problème
le problème c'est que je cherche à le remplir avec cette valeur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 datagridview.Rows.Add(...)
problème c'est que getPersonnelEnCharge() est de type Personnel
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 ((Animaux)listAnimaux[j]).getPersonneEnCharge().getNom();
et getNom() est de type string.
donc lorsque je met cette ligne dans datagrid.Rows.add()
j'ai un message d'erreur
faut-il convertir l'objet en string ??la référence d'un objet n'est pas définie à une instance d'un objet.
Merci d'avance
Partager