• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

MSFlexgrid question please

I have a form with 2 MSFlexgrids.
The top grid is simply there for COLUMN TITLES.
The second grid (beneath it has the data rows)
(I HAVE TO HAVE it this way. Don't suggest putting the titles in the lower grid please.)
The top grid has:
NAME                 ADDRESS                 CITY             STATE             ZIP              
for example.

The lower grid does not fit horizontally on the screen so there are scroll bars right to left.
Everything looks good untill I scroll the bottom grid, then of course, the top grid column lables are wrong becuase it does not scroll too.
My question is, can I make it scroll too or follow the scrolling of the bottom grid?

1 Solution
Well...i won't suggest you to have one flexgrid instead of two if you like to knock your head into the wall so much :-), but obviously you can scroll both flexgrids simultaneously:

Private Sub Lower_grid_Scroll()
Upper_grid.LeftCol = Lower_grid.LeftCol
End Sub

yyuubum2Author Commented:
Excellent! Exactly!

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now