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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T09:06:01+00:00 2026-05-14T09:06:01+00:00

I need to generate a table from a List (Of Students). My Student class

  • 0

I need to generate a table from a List (Of Students). My Student class has properties for AcademicYear, TeachingSet, Surname and Forenames, is sorted in that order and also properties for ID and start date. The table should nest TeachingSets within AcademicYears and then the students within the TeachingSets, as shown in the table I’ve mocked up at http://www.ifslearning.ac.uk/files/student-table.jpg

Using a repeater I get
08-10 students B74394 Mzejb Bsppn
08-10 students B74395 Lbuifsjof Bvti
08-10 students C68924 Epoob Cmpblf
08-10 students D41468 Ipxbse Dbwfz

But I need to have
08-10 students
– B74394 Mzejb Bsppn
– B74395 Lbuifsjof Bvti
– C68924 Epoob Cmpblf
– D41468 Ipxbse Dbwfz

  • 1 1 Answer
  • 1 View
  • 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-14T09:06:01+00:00Added an answer on May 14, 2026 at 9:06 am

    If you use asp .net Web Forms then you can look at ListView, DataList and Repeater controls. I would recommend you to try ListView. Here is a deep description about using this control. It is very simple to configure any layout you need:

    <asp:ListView runat="server" ID="ListView1">
        <LayoutTemplate>
            <table>
                <tr runat="server" ID="itemPlaceholder" />
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td><%#Eval("YourObjectProp") %></td>
                ...
            </td>
        </ItemTemplate>
    </asp:ListView>
    

    You can group your objects like this:

    List<AcademicYear> academicYears = new List<AcademicYear>();
    var year = new AcademicYear { Year = "08-10" };
    year.Students.Add(new Student { Name = "Mzejb Bsppn" });
    year.Students.Add(new Student { Name = "Lbuifsjof Bvti" });
    ...
    

    And layout:

    <asp:ListView runat="server" ID="ListView1">
        <LayoutTemplate>
    
                <asp:PlaceHolder runat="server" ID="itemPlaceholder" />
    
        </LayoutTemplate>
        <ItemTemplate>
            <%#Eval("Year") %> students<br />
             <asp:ListView runat="server" ID="nestedListView" DataSource='<%# Eval("Students") %>'>
                <LayoutTemplate>
    
                   <asp:PlaceHolder runat="server" ID="itemPlaceholder"  />
    
                </LayoutTemplate>
                <ItemTemplate>
                   <%#Eval("Name") %><br />
    
                </ItemTemplate>
            </asp:ListView>   
        </ItemTemplate>
    </asp:ListView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to generate a table from a list of objects. Each row will
I need to generate a list of activity from multiple tables in order of
I need to generate Entities/Object from selected tables - not all. Is this possible
I need to validate the text box value from the generated html table (grid)
I need to generate an xsl table for the xml below, for attributes fname
I'm new with R. I need to generate a simple Frequency Table (as in
I need to generate a couple of objects from lists in Javascript. In Python,
I need to generate a list of users that are managers, or managers of
My little site should be pooling list of items from a table using the
I have table that has multiple data for the same Id. I need to

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.