Results 1 to 4 of 4

Thread: [RESOLVED] Datagrid - scroll to end

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2004
    Location
    Essex, UK
    Posts
    774

    [RESOLVED] Datagrid - scroll to end

    Is there an eay way to cause a Datagrid to scroll (programmatically) so that the last entries in a long list are visible. In MSHFlexgrid I would use the .rowisvisible property but the Datagrid doesn't seem to have this.

    Thanks.
    Last edited by paulg4ije; Jan 31st, 2008 at 08:57 AM. Reason: Resolved

  2. #2

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2004
    Location
    Essex, UK
    Posts
    774

    Re: Datagrid - scroll to end

    Quote Originally Posted by RhinoBull
    Since datagrid is a bound control you need to navigate the underlying recordset object:
    Code:
    Private Sub Command1_Click()
        Adodc1.Recordset.MoveLast
    End Sub
    Perfect! Thank you. I had assumed doing a refresh on the grid would move to the last record but apparently not. I hardly ever use Datagrids but I needed some "quick-and-dirty" data entry and have never got around to changing it.

    Thanks again.

    Paul.

  4. #4

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