2
Answers

How to read data from file to show in ListVie?

phanny phok

phanny phok

13y
1.7k
1
Dear all,
I am a new programmer with C#.net. I can read the data from file to show in ListView, but it doesn't order.
My ListView is
ID   Name   Gender   Address

Then I want the data from the file to show in each record as below:
ID       Name      Gender       Address
001     Phanny    F              Cambodia

My result that I can do is
ID                              Name         Gender           Address
001PhannyFCambodia

The result is only in column ID.
My code is

textLine = objReader.ReadLine();
lis.SubItems.Add(textLine);
listView1.Items.Add(lis);

Please help me.

Thank you so much.

Answers (2)