When refreshing an ultragrid I have been having sporadic (or what I thought were sporadic) problems where the grid would go black or flash before the grid was refreshed.
As I have done some more testing, I have found that the grid only seems to exhibit this behavior if you are refreshing the grid from a point where the numbers of rows in the grid does NOT completely fill the viewport (there is no vertical scroll bar). That is, if I refresh the data and bind to the grid and the grid already had more rows than were visible in the viewport (there IS a vertical scroll bar), I don’t get this flash/black grid behavior.
I have tried wrapping the grid refresh process with Suspend/Resume Layout and Begin/End Update both on the grid itself, its parent control, and the form all to no avail.
Thanks in advance for any assistance.
I have figured this out. While I was wrapping the entire process of refreshing the data set and the grid with Suspend/Resume Layout, one of the methods that I was calling was running EndUpdate() against the grid that I was refreshing. Once I removed that, the refresh works fine.