How to edit a selected SubItem programmatically?
Posted
by Dodi300
on Stack Overflow
See other posts from Stack Overflow
or by Dodi300
Published on 2010-04-08T14:00:15Z
Indexed on
2010/04/08
14:13 UTC
Read the original article
Hit count: 416
Does anyone know how can I edit a subitem on a listView? I've tried using this:
ListView1.SelectedItems[0].SubItems[1].Text = "Hello?";
But that doesn't work. I get the error "InvalidArgument=Value of '1' is not valid for 'index'". I've got two columns on the listview, so I figured the index of [1] would be the subitem.
© Stack Overflow or respective owner