April 18th, 2014, 10:34 AM
Load CSV to Listview including Subitems
Using Visual Basic 2008, I Want to load a csv file to Listview.
I am new to LINQ, and had some great performance increase in using LINQ (compared to loops) when loading a csv file to a single column Listview.
altought, i have not found any way to do the exact same thing, but in a multiple column Listview.
Dim items() As ListViewItem = (From line In IO.File.ReadAllLines(thefiletoread) Where line.Length <> 0 Select New ListViewItem(RTrim(line.ToUpper))).ToArray
I do not wish to use loops, since LINQ syntax works so well.
any of you guys have an idea?
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!