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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:40:18+00:00 2026-05-17T17:40:18+00:00

I am interested in reducing the time of adding rows and colums to tablelayoutpanel

  • 0

I am interested in reducing the time of adding rows and colums to tablelayoutpanel dynamically.

I need to add 10 rows and 10 columns (maximum 10x 10 =100 controls, may be less than 100 depending upon user input), I have construct the logic which works good but the problem of my logic is it’s taken considerable time in adding rows and columns to tablelayoutpanel.

    for (int rowNumber = 1; rowNumber <= (TSegments.Value); rowNumber++)
    {
        for (int columnNumber = 1; columnNumber < (PSegments.Value) * 2 + 2; columnNumber++)
        {
            tempTextBox = new TextBox(); 
            tableLayoutPanel1.Controls.Add(tempTextBox, columnNumber, rowNumber);
            tempTextBox.Anchor = System.Windows.Forms.AnchorStyles.Right; 
            tempTextBox.Dock = DockStyle.Fill;
        }
    }
  • 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-17T17:40:18+00:00Added an answer on May 17, 2026 at 5:40 pm

    The best/only way to speed it up is by surrounding the changes with Suspendlayout/ResumeLayout. Just call yourtable.Suspendlayout() before changing the table and ResumeLayout() after it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am interested in reducing the file size of my application. It is a
I'm especially interested in memory profiling, reducing the size of a compiled .swf, measuring
I need an formula for determining a debt payoff plan where the following are
I'm wondering if there are any best practices for improving UI responsiveness while doing
My problem is: I have a perl script which uses lot of memory (expected
Judging from my knowledge of the history of firmware engineering tools, practices etc. It
We are currently using VSS for version control. Quite few of our developers are
I'm trying to set up integration tests using the AbstractTransactionalJUnit4SpringContextTests base class. My goal
I have a question regarding handling errors in a J2EE application. Our current application
I recently followed a discussion on the Qt4-interest mailing list about whether it is

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.