views:

26

answers:

1

This is WinForms..

I have a for loop:

private void MagicBtnClick(object sender, EventArgs e)
{
   foreach (var auras in GetBuffs())
   {
      var i = new ListViewItem(auras.ToString(), 0);
      listView1.Items.AddRange(new[] { i });
   }
}

I want to add a simple Subitem(I get the value from a textbox) to a selected item on the list.

Anyone have any suggestions?

+1  A: 

listView1.SelectedItems[0].SubItems.Add("4"); Solved it

Anden