Dictionary Classes
-
Hi, I have Listbox(lstgroups) and listview(lstItems). say items in lisbox as Groups and in listview as Items. Each Group should have list of items, when i add an new item to lstitems. it should assign to selected group. and If I add two items to a selected group and moved to Second goup and added items to these. Then if moved to first group the intial added Items are to displayed in Listview. is that Possible. By using dictionary classes Here List<object> should return lstitems Dictionary<string, List<object>> d= new Dictionary(string, List<object>>(); d.add(lstgroups.items, new List<object>); //error cumes here, how to assign here List<> Thanks and regards, Uday
-
Hi, I have Listbox(lstgroups) and listview(lstItems). say items in lisbox as Groups and in listview as Items. Each Group should have list of items, when i add an new item to lstitems. it should assign to selected group. and If I add two items to a selected group and moved to Second goup and added items to these. Then if moved to first group the intial added Items are to displayed in Listview. is that Possible. By using dictionary classes Here List<object> should return lstitems Dictionary<string, List<object>> d= new Dictionary(string, List<object>>(); d.add(lstgroups.items, new List<object>); //error cumes here, how to assign here List<> Thanks and regards, Uday
I don't understand what the problem is :- Dictionary<string,>> d = new Dictionary<string,>>(); List list = new List(); list.Add("Item1"); list.Add("Item2"); list.Add("Item3"); d.Add("ItemGroup1", list);
Regards Senthil [MVP - Visual C#] _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro