Results 1 to 2 of 2

Thread: MSFlexGrid scrollbar follow problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    9

    MSFlexGrid scrollbar follow problem

    The user constantly fills the MSFlexGrid and once it fill like 20 rows it starts to go below the line and a scroll bar appears. Is there anyway I can set the scrollbar value? Is there anyway I can get it to follow without adding new entries to the top?

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: MSFlexGrid scrollbar follow problem

    Use the TopRow property to ensure a row is visible. To check if a row is visible, hey use the RowIsVisible method.

    Something like

    VB Code:
    1. '...code to add new row.
    2. If Not FlexGrid.RowIsVisible(FlexGrid.Rows-1) Then
    3.    FlexGrid.TopRow = FlexGrid.Rows - 1
    4. End If

    Note: Even if the row is not completely visible RowIsVisible will return True.

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