Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help!!!! listView insertion problem

Status
Not open for further replies.

samibami

Programmer
Oct 12, 2003
28
0
0
IL

hi there,

i'm using listView to show what the windows task manager shows,however,when i insert the information,the first column seems to be empty!!! i tried many tutorials and code exaples but none helped!!!

this is my code:
//*********************************************
string[] myItems = new string[]{name,pid,time,mem,peakmem,handles,threads};

ListViewItem listItem = new ListViewItem();
foreach(string item in myItems)
{
listItem.SubItems.Add(item);
}

listView1.Items.Add(listItem);
//*********************************************
the listview columns are already set in the columns collection property.

10x 4 your help!
 
ListviewItems have their own Text property where you can set that value.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top