This project is read-only.


Vertical Scroll incorrect after row visibility changes


The vertical scroll behave incorrectly after multiple row visibility changes. In my application, a lot of rows are shown and hidden depending on certains conditions. I get the following behaviour after showing and hiding some of the rows:
1) At first, the scrollbar enable the user to scroll past the last row (the last row is at about 70% of the scrollbar).
2) After multiple rows are hidden (at the same time), scrolling permits to access only the first 20% or so of the rows.
3) After 2 or 3 more changes to the visibility of the rows, the scrollbar disapears completly. Further changes does not bring the scrollbar back.
I have experimented with the samples and found that sample 50 seems to display the same behaviour.
1) uncheck "Row 1" and "First 40"
2) check "Row 1" and "First 40"
Each time those two steps are repeated, the scrollbar enables the user to go a little further past the end of the grid. It does not however totally hide the scrollbar. My only guess is that I hide and show a greater quantity of lines at each manipulation and that the rows I show and hide are separated by other rows.
If you need more informations, I would be happy to provide them. I could also try to pull together a demo application that represents more accuratly the conditions presents in my application.
Closed Apr 16, 2010 at 8:52 AM by dariusdamalakas


dariusdamalakas wrote Apr 14, 2010 at 7:37 AM

Which version are you using? Are you using the lates from bitbucket?

There was similar bug report to yours here:
That issue was fixed

ma wrote Apr 14, 2010 at 9:29 PM

I'm using the latest version from the bitbucket repository (commit 60: 4df886b67347). I was the one that summited the bug you referenced. In fact, it was because it was marked as resolved that I tried to update my application to use the new version of SourceGrid. I really think the two bugs are different. The first bug caused the scrollbar to stop when scrolling over hidden rows. That is not the case anymore. Now, the scrollbar reports an incorrect number of visible rows and permits to scroll past the last row or prevents to scroll to the last row. When I updated my code, I skipped a lot of versions (from 4.20 to the latest version available) so I cannot assure you that the current behaviour was caused by a recent version or not. At first, I thougt I misused your library, but, as I wrote, sample 50 seems to display the same behaviour.

dariusdamalakas wrote Apr 15, 2010 at 8:52 AM

Great, i managed to reproduce the problem using your steps.

I will try to fix this in a few days, thanks

dariusdamalakas wrote Apr 15, 2010 at 11:40 AM

I have commited a fix into Tip.

The reason for error was that row visibility changed event fired even if the row was already visible, or already hidden

dariusdamalakas wrote Apr 15, 2010 at 11:40 AM

Does it work now?

ma wrote Apr 15, 2010 at 8:37 PM

Yes, it's working properly. Thanks a lot for the fast responses, it's greatly appreciated.

wrote Apr 16, 2010 at 8:16 AM

wrote Apr 16, 2010 at 8:52 AM

wrote Feb 22, 2013 at 1:09 AM

wrote May 16, 2013 at 12:27 PM

Dowlet wrote Jun 10, 2013 at 8:58 AM

I'h got a similar problem!
I've 1000 rows of data. When I make hidden fows from 1 to 990 , vertical scroll bar is dissapearing. It's ok.
But when I make all of these 990 visiable again, vertical scroll bar don't want to to be visiable again.
Could u please help me?