CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    10

    Scrolling two flex grids together

    I have two flexgrids (side by side) on my form with the same number of rows.

    When I scroll one of the flexgrids, I would like to have the other one scroll at the same rate.

    Does anyone have any examples or ideas of how to accomplish this??

    Thanks


  2. #2
    Join Date
    Jun 1999
    Posts
    6

    Re: Scrolling two flex grids together

    Hi,

    Try the following:

    Private Sub MSFlexGrid1_Scroll()
    MSFlexGrid2.TopRow = MSFlexGrid1.TopRow
    End Sub

    Private Sub MSFlexGrid2_Scroll()
    MSFlexGrid1.TopRow = MSFlexGrid2.TopRow
    End Sub




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured