Pause painting while data updates?

  • Thread starter Thread starter R3al1ty
  • Start date Start date
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!
 
Back
Top