With this code I can populate my listview:
foreach (string elements in Properties.Settings.Default.Items)
{
ListViewItem lvi = new ListViewItem();
var txt = elements;
if (!listView1.Items.ContainsKey(txt))
{
lvi.Text = txt;
lvi.Name = txt;
lvi.SubItems.Add("");
lvi.SubItems.Add("1.0");
listView1.Items.Add(lvi);
}
}
this is result:
How can I update only second column(Total Price) from textbox changed event? (Windows Forms, Visual Studio 2012)
Some properties
I think this is what you are asking for:
May I also suggest: (only allow numbers and one .)