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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Handling QueryRowHeight event during RowCount update

Thread ID:





32411 Jul 29,2005 06:53 AM UTC Jul 29,2005 07:32 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On July 29, 2005 06:53 AM UTC

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

Administrator [Syncfusion]
Replied On July 29, 2005 07:32 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon