We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Handling QueryRowHeight event during RowCount update

I''ve got a virtual grid which I update the RowCount in response to certain events. When the RowCount decreases I notice that QueryRowHeight gets fired for each of the rows which are being removed. (eg if the RowCount was 5 and I set it to 4 QueryRowHeight is fired for row 5). The problem is, by that time I no longer have any data about the old row 5. And in fact any response that I do to that event during the RowCount update may be incorrect. Given that I''m probably returning rubbish for this event, What is the row heights used for and what is the correct method of handling QueryRowHeight in this circumstance? Thanks, Sue

1 Reply

AD Administrator Syncfusion Team July 29, 2005 02:32 AM

After changing the RowCount, try immediately calling grid.ResetVolatileData() to see if that avoids this problem.

Loader.
Live Chat Icon For mobile
Up arrow icon