View Full Version : How do I stop scrollbar resizing in an Advanced DataGrid
zanshin
11-11-2009, 04:23 PM
I currently have an advanced dataGrid with 75 columns. As I move the scrollbar to the right or left it changes length. Is there a way to keep it one size, and why is it doing this?
Barna Biro
11-11-2009, 07:30 PM
Hello zanshin,
Could you maybe post a screenshot? I'm not sure what you mean by "it changes length". What changes length? The whole DataGrid? The columns? I think a screenshot would help a lot.
Cheers,
Barni
zanshin
11-11-2009, 07:45 PM
The scrollbar length itself adjusts as I scroll from left to right. One instance its an inch long the next its half and inch long and so on.
I'm not sure how to put a screen shot in these windows. Cut and paste didn't work.
Barna Biro
11-11-2009, 07:59 PM
Hmm... I can only think of one reason but seeing your actual code or at least a sample where you reproduce the problem would help a lot. So, I think that a reason why this migth happen is because you have certain columns that are of fixed width and others that resize depending on the area of display. When you scroll trough the grid then at one point you run over columns that resize dynamically, maybe this resizing is the reason why the scrollbar re-adjusts itself.
I personally did not run into something like this, but I'm sure that you had your reasons when you decided to put all 75 columns in the same grid instead of trying to structure your application in a way that would make the navigation / data visualization more easy.
The dynamic resizing would be "my wildest guess" but it could easily be something else. Unfortunately, without seeing the actual code / scenario and without being able to debug it, it's hard to guess what the exact problem is in such situations.
PS: As a test, try setting all the columns to a fixed width and see if the scrollbar re-adjusts. If it does not readjust then the column resizing is the problem, if it still re-adjusts then the problem is somewhere else but I really don't think we can guess a solution without actually being able to run a few tests on your file ( or at least on reproduction of the issue ).
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.