Faced the problem: How to display something in the already created item in the listView? Briefly about the situation - there is a listView, it has 4 columns, information is displayed in a loop in the first 3 columns. How now to write in the first row in the 4th column?

listView1.Columns.Add("r", 30, HorizontalAlignment.Left); listView1.Columns.Add("Xr" + iter.ToString(), 60, HorizontalAlignment.Left); listView1.Columns.Add("L1", 40, HorizontalAlignment.Left); listView1.Columns.Add("Er" + iter.ToString(), 40, HorizontalAlignment.Left); ... for (int i = 0; i < iL1.Length; i++) { listView1.Items.Add("1").SubItems.Add(Xr[i].ToString()); listView1.Items[i].SubItems.Add(iL1[i].ToString()); } ... 

    1 answer 1

     listView1.Items[i].SubItems.Add(<выводимая_информация>); 

    where i is the column number