C # - update a subitem in a list

I am working on an application in which users enter information, which is then added to the list view. It works great. The only problem is that the application connects to a website that updates the Dots field in this list for each account. I am not sure how I can update one sub in the list.

Here is an example screenshot:

alt text

How to select a specific sub-item in a specific line for updating?

+5
source share
2 answers

Ok, I'm going to suggest Windows Forms.

ListViewItem WinForms Name, . , :

var item = new ListViewItem("Text");
item.Name = "foo"; // some unique id string
listView1.Items.Add(item);

, ListView , Items.Find.

var fooItem = listView1.Items.Find("foo", false);
+5

Matt, , , Name ListViewItem. , Find, , :

fooItem.SubItems[2] = "450";
+3

All Articles