Pause painting while data updates?

R

R3al1ty

Hi folks,

I have custom painting code that renders data from a datatable. The
datatable can be refreshed with new rows being added and the old ones
being deleted. As this happens async, I frequently get the nasty red
cross on my controls.

What is a good pattern for handling this scenario? Do I set a global
IsDataBeingUpdated flag and prevent painting while the flag is true?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top