phanny phok

phanny phok

  • NA
  • 3
  • 1.9k

How to read data from file to show in ListVie?

Jan 10 2012 4:33 AM
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)