|
-
Feb 1st, 2006, 03:27 PM
#1
Thread Starter
Member
[RESOLVED] MSFlexGrid Scrollbars are not visible after resizing the grid.
I have a form that is a child form in an MDI setup.
This child form has four tabs and on each tab is an MSFlexgrid.
All data in the flex grids are inserted manually.
When data is entered on one of the four flex grids (call it flexgridalpha, it can create many new rows in one of the other flexgrids (call it flexgridbeta)...
So, flexgridbeta starts with a grid with 24 rows. Then the user tabs to flexgridalpha and makes some changes that generate 50 new entries that are entered into the table that feeds flexgridbeta. The user then selects the flexgridbeta tab to see his 74 rows.
The data appears just fine, but the vscrollbar is not visible. Clicking where the scrollbar SHOULD be causes that part of the scrollbar to become visible. (ie if you click where the arrows should be, they will suddenly reappear, or if you click between the two arrow, the thumb and scroll bar appears but the arrows don't appear, yet).
Any suggestions?
Thanks,
MagicT
-
Feb 1st, 2006, 04:14 PM
#2
Re: MSFlexGrid Scrollbars are not visible after resizing the grid.
I cannot duplicate that problem. Can you post a sample project that recreates the problem?
You could try calling the Refresh method of the Grid.
-
Feb 2nd, 2006, 11:41 AM
#3
Thread Starter
Member
Re: MSFlexGrid Scrollbars are not visible after resizing the grid.
Yes, it is a bit odd...there is so much code here that to separate out the part that is causing the problem probably would not be possible, since I don't really know where the failure is coming from.
What I noticed is that the scrollbars worked just fine if the program started with that grid displayed (the state of the form is stored in the registry).
So, here's what I did to "Fix" it...once I did a grid.Refresh (which didn't fix the problem)..I did a
gridContingencyPlan.ScrollBars = flexScrollBarBoth
apparently, that forced a repaint of the scrollbars.
Thanks!
Problem not really solved but this is an acceptable workaround.
-MagicT
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|