I am trying to programmatically update a listview and its items in my winForm app. I have it working with literal commands:
ListViewItem item8 = new ListViewItem();
item8.Text = "Windows Server Resource Kit";
this.listView1.Items.Add(item8);
What I really want to do is to do this programmatically. Something like:
public void _updateList(string strApp, string strStatus)
{
ListViewItem li = new ListViewItem();
if (strApp != null)
{
li.Text = strApp;
listView1.Items.Add(li)
}
}
but that is not getting me very far. Anyone have an idea for this one. I guess another way to put it is I want to be able to edit each listviewitem's subitems. Not sure if I need to do an array to get this done or not. Any help is appreciated. Chuck