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;
}
 
Back
Top