ListView - changing the text of subitem n?

  • Thread starter Thread starter Max Adams
  • Start date Start date
M

Max Adams

ListView - changing the text of subitem n?

All,
How can I change the text of a specific subitem of a specific ListViewItem?
I want to have some "Status" column which I want to continually update based
on the progress of the program.

Thanks
PT
 
Max,

If you have a reference to the ListViewItem.ListViewSubItem instance
that represents the row and column you want, then you should be able to
update the Text property and it will update automatically.

Hope this helps.
 
Sorted it.


private void AppendItem( ListViewItem item, int nSubItem, string strText )
{
item.SubItems[nSubItem].Text = strText;
return;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top