KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Preamble I'm asking this question because even though I've read through a lot of ListView resources, I'm still not 'getting' it. Background I have a bunch of Foo 's that have a list of items associated with them ( known as Bar ), and I'm pulling them from the Data Access/Business Logic layer as Dictionary that holds a Foo and its associated Bars . I'd like to spit these items out in on the Webpage into a ListView that holds the Foo.Name on the left, and the List<Bar> on the right in a dropdownlist. (Shown with my beautiful ASCII art below): ListView ------------------------------------------------------------------ | Name Of Item | DropDownList (of List<T>) | |---------------------------------| _____________________ | | foo1 | | bar1 | v | | | | |_______________|___| | ------------------------------------------------------------------ | | DropDownList (of List<T>) | | | _____________________ | | foo2 | | bar2 | v | | | | |_______________|___| | ------------------------------------------------------------------ Alright, here's what's going on. This is a ListView; The items are pulled from a database into a Dictionary<Foo, List<Bar>> . I'm trying to get the Key Value from the dictionary to show up under 'Name of Item', and am trying to get the `List<T> Bar' to show up as a DropDownList on the right side of the ListView. Class Diagrams ----------------- ----------------- | Foo | | Bar | ----------------- ----------------- | Id
Tags (comma-separated)
Save Edits
Cancel