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 837213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:06:38+00:00 2026-05-15T05:06:38+00:00

Say I have a data structure like a Dictionary<string, Dictionary<string, int>> or similar, and

  • 0

Say I have a data structure like a Dictionary<string, Dictionary<string, int>> or similar, and I want to render this as an HTML table with row-headers as the first string key, and column headers as the second string key. Is there a built-in or other Control for this?

  • 1 1 Answer
  • 3 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-15T05:06:38+00:00Added an answer on May 15, 2026 at 5:06 am

    There are no built in controls that will recognize a complex data structure like that. You’ll need to do a bit of custom coding for it.

    You could probably easily accomplish it with a Repeater with an ItemDataBound event handler. Just off the top of my head, no testing:

    <asp:Repeater ID="Repeater1" runat="server"  OnItemDataBound=" Repeater1_OnItemDataBound">
    <ItemTemplate>
       <asp:Literal ID="Literal1" runat="server" />
    </ItemTemplate>
    </asp:Repeater>
    
    
    protected void Repeater1_OnItemDataBound(Object sender, RepeaterItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
              ListItemType.AlternatingItem)
        {
            var rowHeader= (e.Item.DataItem).Key;
            var columnHeaders = (e.Item.DataItem).Value;
            foreach (var header in columnHeaders)
            {
                  // build string to populate table row, assign to Literal1
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say we have a data structure like this: var sequences = new List<Tuple<int,
Say I have a data structure of IEnumerable<IEnumerable<object>> like this: { { A, B
Say i have a data structure like this: type Foo struct { Bar []struct
Say I have data like this: <option value=abc >Test - 123</option> <option value=def >Test
Say I have this table schema. ID AccNo Amount Say I have this data
Say I have a structure like so: <div data-stuff=foo></div> <div data-stuff=foo></div> <div data-stuff=foo></div> <div
I have a huge data set. The structure looks something like this: K_Field1, K_Field2,
Let's say I have xml structure like this <root> <element>some content</element> <element>some content 2</element>
Let's say I have the following hypothetical data structure: create table country ( country_id
Let's say I have a data structure like the following: Camera { double x,

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.