c#.NET Listbox

I have a listviewbox and I need it to do this. I need it to let the user click on the comment and then put the comment in a textbox to edit the text. The comment is in the listviewbox. The columns that are in the listviewbox is the date,comment, UserName. can u help




Answer this question

c#.NET Listbox

  • Toranoshi22

    You can only make the item labels editable.  If you want to make the sub-items editable, it's not a one step process.  Here's a link that does that with MFC - http://www.codeguru.com/Cpp/controls/listview/editingitemsandsubitem/article.php/c4175/.  You'd have to subclass your ListView - override the WndProc and translate all the code (in that article) to .Net. 
  • Sing Hee

    alternatively, you can catch the ItemActivate event and show a new Form where the user can edit all Subitems of currently selected ListViewItem.

  • c#.NET Listbox