I tested your code and it works good when I am testing it.
Just a sugestion add lvwItems.BeginUpdate(); before your while loop and lvwItems.EndUpdate(); after your while loop.
Are us sure there are always atleast 3 strings (separated by ,) per line in your file?
>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;
>}
>
>
Semper ubi sub ubi.