3
Answers

4 column listview from text....

Ask a question
Jayson B

Jayson B

16y
2.5k
1

Okay, Heres my senario and im having difficulty trying to picture the logic to make it work...

I have a file with the following:  

ADDRESS1
CITY1
STATE1
ZIP1
ADDRESS2
CITY2
STATE2
ZIP2

And each line is different, I need to loop the ADDRESS, CITY, STATE, ZIP and put them in a listview as columns horizontal... ie.
Address, City, State, Zip

Right now im loading the file above as textbox1.text ....  and iterating to add each line but that only adds a single column, how do I make that add to all columns!?


example Listview should look like:
Address      City     State     Zipcode
ADDRESS1  CITY1  STATE1  ZIP1
ADDRESS2  CITY2  STATE2  ZIP2
.... etc .....

Answers (3)