Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
DrawGrid keeps jumping back to top
I have a Drawgrid in a ScrollBox control.
Sometimes, when I click on the Drawgrid (while a lower part of it is visible) it automatically repositions the Scrollbox scrollbar position to the top (so that the top row of DrawGrid is back in view).
I've noticed that Drawgrid does this whether or not it is in a ScrollBox. Sometimes, when working on an individual grid further down the Drawgrid (ie, having just placed a picture in it), the Drawgrid repostions itself so I can see the top row again.
I'm using OnDrawCell. Is there some kind of automatic repositioning of DrawGrid ? And can I stop it happening ?