Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
How to suspend grid drawing and then redisplay
posted

I have a grid with parent/child bands. The parent rows contain customer data and the child rows contain Orders for each customer.  The grid is attached to an editor button on an ultra text editor. Everything works except there is a behavior I would like to inhibit.

If I populate the text box with the customer name in code then when I click the editor button the first time the grid drops down with the parent row selected and then proceeds to open the child band and display the orders (which is the exact behavior I want). The problem is that if there are a lot of orders, the grid shows the orders scrolling as they fill. This takes some time and just doesn't look right. I'd like to suspend the display until the child band is completely filled so the user doesn't see all the orders scrolling by. Ideally, I would then like to position to the first order but that isn't critical.

I understand that grid.beginUpdate and grid.EndUpdate will stop the redraw but I'm not sure where to put them. I tried putting the beginupdate in the BeforeEditorButtonDropDown and I've tried putting the endupdate in several events but all I get is a black rectangle where the grid should be.

How would I handle this?

Linda