Results 1 to 2 of 2

Thread: [RESOLVED] Scrolling flexgrid

  1. #1

    Thread Starter
    Lively Member meander's Avatar
    Join Date
    Jun 2004
    Posts
    121

    Resolved [RESOLVED] Scrolling flexgrid

    how can i get the flexgrid to scroll down as i enter new data beyond the bottom? right now it just sits there, and i want it to scroll as new data is entered. searching the forum turned up no results.
    I'm having a problem here. Do I put the serial number in the box that says 'serial number,' or do I put it in the box that says 'company'? - Oh, those poor tech support people

    Jiveman: Lookie here, I can dig grease and butter on some draggin' fruit garden.

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Scrolling flexgrid

    Use MSFlexGrid1.RowIsVisible(x) to test if row x is visible.

    Then use MSFlexGrid1.TopRow=y to set the top row to y - so that whatever row you want is visible.

    I found this code in a program that I have - I believe it will make a particular row visible.

    Code:
    With MSFlexGrid1
        j = 1
        If .Row < .TopRow Then j = -1
        If .Rows > 1 Then
            While Not .RowIsVisible(.Row)
                .TopRow = .TopRow + j
            Wend
        End If
    End With

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

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