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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:21:01+00:00 2026-06-09T21:21:01+00:00

I have a c# .net application with SQL Server backend. The app logs item

  • 0

I have a c# .net application with SQL Server backend. The app logs item movements within a company based on bar codes. Users add their items to the software along with the users, each have a bar code assigned. The software accompanies an item tracking system which sits on the wall. The system tracks keys for example, there is a board that holds 100 bar coded keys, each position on the board is numbered 1-100. In the software, the user needs to be able to see a “virtual item board” which displays information laid out in a virtual board, showing which key is in, which is out, who has what, etc, from a glance.

The user programs into the software what capacity system they are using when they first install the software, so the software knows then that they are using a 100 system. My question is, how can I dynamically create a table or some form of layout to present this data in a grid like format? I have researched using the tablelayoutpanel control but it doesn’t seem to be doing what I need. I had the following code in the Form_Load event:

private void frmItemBoard_Load(object sender, EventArgs e)
{
    try
    {
        // table data linked to form controls (first 5)
        if (Properties.Settings.Default.systemsize == "5" || Properties.Settings.Default.systemsize == "5")
        {
            // load the layout for a 5 system
        }
        else if (Properties.Settings.Default.systemsize == "10")
        {
            // load the layout for a 10 system
        }
        else if (Properties.Settings.Default.systemsize == "25")
        {
            // load the layout for a 25 system
        }

        // etc.....
        // other system sizes can go here. The software needs to support at least up to 20,000 keys somehow
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.ToString(), ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
        return;
    }
}
  • 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-06-09T21:21:02+00:00Added an answer on June 9, 2026 at 9:21 pm

    How about something like

    int size = Properties.Settings.Default.systemsize;
    int height = 0;
    int width = 0;
    
    //check our sizes
    if (size == 5)
    {
        height = 1;
        width = 5;   
    else if (size == 10)
    {
        height = 2;
        width = 5;
    }
    else if (size == 25)
    {
        height = 5;
        width = 5;
    }
    
    //build a table
    string table = "<table>";
    
    for (int i = 1, i<=height,i++)
        {
        table += "<tr>"
    
        for (int j = 1, j<=width,i++)
            {
            table += "<td>"
            table += "some content"
            table += "</td>"
            }
    
        table += "</tr>"
        }
    
    table += "</table>"
    
    //write table to your page
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have developed a .NET web application that uses SQL Server as a backend.
I have a SQL Server as backend for an asp.net application. Multiple people might
I have an ASP.NET MVC 3 application with a SQL Server 2005 database backend.
I have a ASP.NET application that connects to a SQL server backend on another
I have a database on SQL Server 2008. I have an ASP.NET application that
I have an asp.net web application written in C# using a SQL Server 2008
I have an ASP.Net MVC application and I'm using Forms authentication in SQL Server.
I have a desktop application (C# .NET 3.5) that uses a SQL server for
We have a client running our .NET application which connects to SQL Server 2005
I have a .net application using sql server 2005 database. This is a very

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.