Need help with ListView in C# windows programming.
I have a ListView in detail mode. I click add button, popup prompts me for column data, then I add the data to the ListView which appears as next row.
Imagine I’ve added 3 rows, I want to go and edit the second. I highlight it then click on button Edit. the same popup prompts me with the existing data so I can modify it then click submit on the popup.
The new data should replace the old data in the 2nd row. I don’t know how to do that.
I know how to add a new row using:
items is a string array of the column data…
list_view.Items.Add( new ListViewItem( items ) );
But I have no idea how to update the content of a particular row. Please help.
Thank you!