PC Review


Reply
Thread Tools Rate Thread

Batch control updates?

 
 
shumaker@cs.fsu.edu
Guest
Posts: n/a
 
      17th Aug 2005
How do I prevent repainting while updating a batch of controls?
Datagrids have functions to do this, but many other controls do not. I
have a large number of controls that I update a few times a second, and
everytime I set a property of each control the form is redrawn. I
would like to suppress redrawing until I am done updating all the
controls.

Also the member function that is in the form class that iterates
through the controls to be updated has to use Control.Invoke to update
the controls because the member function is called by an event that is
fired from another thread. Even if it is fired asynchronously, I still
have to marshall the control update call to the UI thread using
Control.Invoke. It would be nice if I could marshall the entire member
function call to the UI thread so that each individual control update
doesn't have to be udpated. But from what I've found so far, it seems
to not be possible.

Thanks in advance for any suggestions.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does ADO.NET 2.0 DataAdapter do batch updates? ronscottlangham@yahoo.com Microsoft ADO .NET 3 24th May 2007 08:52 AM
Batch updates with GridView McGeeky Microsoft ASP .NET 6 11th May 2007 12:49 PM
Batch Updates of Data =?Utf-8?B?c21pdGhwcmJlYXJz?= Microsoft Access 1 7th Feb 2005 11:25 PM
Batch Datatable Updates spammy Microsoft ADO .NET 0 15th Jun 2004 05:01 PM
Batch Updates and Inserts? John Rugo Microsoft ADO .NET 3 14th Jan 2004 08:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:28 AM.