Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Dictionary Classes

Dictionary Classes

Scheduled Pinned Locked Moved C#
helptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Udayaraju
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • U Udayaraju

      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

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups