Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 897865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:57:08+00:00 2026-05-15T14:57:08+00:00

The DataSource (of my repeater) is a Dictionary<string, IList<User>> I would like the repeater

  • 0

The DataSource (of my repeater) is a Dictionary<string, IList<User>>

I would like the repeater to show all the Key of my dictionary and I would like my ListView to use all the Data inside the Value of my dictionary.

It’s should generated some kind of container. Container got a name (key of the dictionary) and got many values (Value of the dictionary associated with the key).

For now, I got something like that :

<asp:Repeater ID="rpt" runat="server">
  <ItemTemplate>
   <asp:ListView ID="lv" runat="server">
    <LayoutTemplate>
     <table>
      <tr>
       <td colspan="2">
           GroupName (should be take from the key of the dictionary)
       </td>
      </tr>
      <tr id="trConfigurationHeader">
       <th>Name</th>
       <th>Description</th>
      </tr>
      <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
     </table>
    </LayoutTemplate>
    <ItemTemplate>
     <tr>
      <td><%#Eval("Name")%></td>
      <td><%#Eval("Description")%></td>
     </tr>
    </ItemTemplate>
   </asp:ListView>
  </ItemTemplate>
 </asp:Repeater>

How can I bind my ListView ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:57:09+00:00Added an answer on May 15, 2026 at 2:57 pm

    it is much easier to display the Key in the ItemTemplate of the outer Repeater Control.
    You can do as below.Not exactly sure how to display Key in inner container (ListView)

      <asp:Repeater ID="rpt" runat="server" >
      <ItemTemplate>Group :
      <asp:Label ID="dd" runat="server" Text='<%# Eval("Key") %>' ></asp:Label>
       <asp:ListView ID="lv" runat="server" DataSource='<%# Eval("Value") %>'  >
        <LayoutTemplate>
         <table>
    
          </tr>
          <tr id="trConfigurationHeader">
           <th>Name</th>
           <th>Description</th>
          </tr>
          <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
         </table>
        </LayoutTemplate>
        <ItemTemplate>
         <tr>
          <td><%#Eval("Name")%></td>
          <td><%#Eval("Description")%></td>
         </tr>
        </ItemTemplate>
       </asp:ListView>
      </ItemTemplate>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sample code <asp:Repeater> <ItemTemplate> <asp:ListView DataSource=<%# Container.DataItem.Items %> ... /> <asp:DataPager .... /> </ItemTemplate>
I have a dynamic object built inside IronPython and I would like to build
I have a user control that contains a repeater. I populate the datasource for
I use repeater in my asp.net application to display records from database. The datasource
I have a user control that contains a repeater. It seems that data cannot
For example, we have 19 items on the repeater datasource. And we wanted to
I have a repeater that's bound to a SQL Data Source (using ASP.NET). Are
I have a datasource that I want to bind to a listview that has
Given a datasource like that: var c = new Car[] { new Car{ Color=Blue,
I want to bind Repeater control to Dataset which is filled with XML data,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.