Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView Not Loading - #2
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01393824
Message ID:
01393906
Vues:
33
>I cannot for the life of me see why this doesn't work. The columns are there and sized ok, and the ListItems collection is receiving the items - I just don't see anything.
>
>Anyone?
>
>
>private bool LoadCSVFile(string sFileName)
>{
>    bool bRetVal = false;
>
>    lvwItems.Items.Clear();
>
>    StreamReader oReader = new StreamReader(sFileName);
>
>    string sLine;
>    while ((sLine = oReader.ReadLine()) != null)
>    {
>        string[] aWords = sLine.Split(',');
>
>        ListViewItem oNewItem = new ListViewItem(aWords[0]);
>        oNewItem.SubItems.Add(aWords[1]);
>        oNewItem.SubItems.Add(aWords[2]);
>
>        lvwItems.Items.Add(oNewItem);
>    }
>
>    return bRetVal;
>}
>
>
Do you mean you don't see anything in the ListView at runtime?
How and where are you assigning lvwItems to the Listview Items property?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform