Affichage de ma listview erronée
Bonjour,
Dans la dernère ligne de la 1ère colonne de ma listview,ça affiche "System.Windows.Forms.ListView,Items.Count: 2,Items[0]: {PaymentDate}"
Alors que ce que je dois afficher est afficher en haut,je voudrais supprimer cette ligne.
Voici mon code:
Code:
1 2 3 4 5 6 7 8 9 10
| public ListView remplissage_listview(List<string> liste_element_XML, List<float> liste_position_doc, List<float> liste_position_doc2, ListView listview_doc)
{
int a = 0;
foreach (string mots in liste_element_XML)
{
ListViewItem remplissage_ligne = new ListViewItem(new string[] { liste_element_XML[a].ToString(), liste_position_doc[a].ToString(), liste_position_doc2[a].ToString() });
a++;
listview_doc.Items.Add(remplissage_ligne);
}
return listview_doc; |