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

  • Home
  • SEARCH
  • 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 7187985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:58:04+00:00 2026-05-28T18:58:04+00:00

I need to display the checkboxes in tabular form as in attached image. I

  • 0

enter image description hereI need to display the checkboxes in tabular form as in attached image.

enter image description here

I have two tables in database with 3 and 6 records respectively. How to show them as in the above image i.e. in rows and columns in ASP.NET and c#?

enter image description here

  • 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-28T18:58:05+00:00Added an answer on May 28, 2026 at 6:58 pm

    There are a few ways that you could go around solving this…

    If you simply wish to display these six values and not do anything else, it might simply be easiest to create an <asp:Table> tag in your .aspx file and then add the content to it dynamically when loading the page.

    If you have trouble with this just say so.

    Read this as well to see how to do this from code behind.


    edit:

    If you wish to add the code retrieved from the database to the table you can use the following code (I am not sitting in front of a compiler so might contain errors):

    foreach(String name in Privilige_NameList){
        TableRow tr = new TableRow();
        TableCell tcTitle = new TableCell();
        tc1.Value = name;
        tr.Add(tc1);
        foreach(String checkboxTitle in view_nameList){
            TableCell tc = new TableCell();
            CheckBox cb = new CheckBox();
            cb.Text = checkBoxTitle;
            tc.Add(cb);
            tr.Add(tc);
        }            
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to display the log entries from a database. Of course the log
I need to display 2d images in opengl using textures. The image dimensions are
I have a form that has many checkboxes (too many for it to make
I need to dynamically populate a form from fields in a database using EXT
I have model with ManyToManyField. Now I need form but don't need select field
I have a database full of recipes, one recipe per row. I need to
Basically, I have stored information in a database field and I want to display
I have to display a form and the users must decide on selecting just
I have a form with about 40 checkboxes. Once a checkbox is checked, the
i am developing one application with map view i need display the weather depends

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.