Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView Not Loading - #2
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
ListView Not Loading - #2
Miscellaneous
Thread ID:
01393824
Message ID:
01393824
Views:
99
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;
}
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform