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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:52:49+00:00 2026-06-12T20:52:49+00:00

I am using the following method when adding items to my ListView . I’ve

  • 0

I am using the following method when adding items to my ListView.

I’ve made sure to have the ListView double buffered and tried to optimize everything that I can think of – but no matter what I do the UI is sluggish when adding items rapidly.

I have had this problem for quite some time and scouted around trying to find a solution, but gave up each time because I just wasn’t able to fix it. This time I’m hoping to solve this problem. 🙂

I’ve though about maybe going with some custom solution? Are there any good ones that can handle “SPEED”? Or is there something I can do with my current code?

Method:

private void AddNewItemToListView(string gPR, string rank, string category, string name, string url, string email, string address, string phone, string metadesc, string metakeywords, string mobile, string numbofreviews, string rating, string facebook, string twitter, string googleplus, string linkedin, string sitemap, string siteage, string backlinks, string trafficvalue)
{
    Invoke(new MethodInvoker(
        delegate
            {
                string[] row1 = { url, urlSec, address, phone, metadesc, metakeywords, mob, REV, RT, gPR, FB, TW, googleplus, LI, ST, SA, BL, TV };
                ListViewItem item = new ListViewItem();

                flatListView1.Items.Add(name).SubItems.AddRange(row1);                               
            }
        ));
}
  • 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-12T20:52:50+00:00Added an answer on June 12, 2026 at 8:52 pm

    Would you be able to use the ListView.SuspendLayout() method at the start of the work and then call ListView.ResumeLayout() at the finish? That would speed things up alot, I think. You could also try to resume at regular intervals to get some feedback. For instance by inserting the following code at the indicated position:

    // Start of work
    flatListView1.SuspendLayout();
    
    // Below code inside your delegate
    
    flatListView1.Items.Add(name).SubItems.AddRange(row1);   
    
    if ((flatListView1.Items.Count % 1000) == 0)
    {
        // Force a refresh of the list
        flatListView1.ResumeLayout();
        // Turn it off again
        flatListView1.SuspendLayout();         
    }
    
    // End of code inside delegate
    
    // Resume layout when adding is finished
    
    flatListView1.ResumeLayout();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using the following method to add up text boxes. I have tried changing
I have following method which I am using to load ActiveX control dynamically, Dim
Using Nitrogen, the Erlang web framework , I have the following method that receives
In some legacy code I have seen the following extension method to facilitate adding
I am using following method to get bitmap from url but image is not
I am using the following method to reverse geocode a google maps latlng: [GClientGeocoder.getLocations(address:String,
I am using the following method to basically create a JSON string. var saveData
I am using the following method to get the time of the video with
I'm using the following method in my code: - (NSMutableArray *) newOrderedArray:(NSMutableArray *)array ByKey:(NSString
I am using the following method to serialize a date as a string private

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.