Hi,
I am adding items in listview using ini file.When i try to add first item.it is storing properlu,When i try to add another,it is overriding the previous one.I want to store all the items.Is it possible in c#
Hi,
I am adding items in listview using ini file.When i try to add first item.it is storing properlu,When i try to add another,it is overriding the previous one.I want to store all the items.Is it possible in c#
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Deborah Stoddard12 reputationPosted Apr 13, 2015, 11:51 PM EDT
var ini = new IniFile(); ini.Load("Sample.ini"); var listItems = from iniSec in ini.Sections from iniKey in iniSec.Keys select new ListViewItem( string.Format("KEY NAME: {0}, KEY VALUE: {1}", iniKey.Name, iniKey.Value)); this.listView1.Items.AddRange(listItems.ToArray());