Results 1 to 3 of 3

Thread: [RESOLVED] MSHFlexgrid position problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Worldwide in the Sun
    Posts
    566

    Resolved [RESOLVED] MSHFlexgrid position problem

    How can i put the last used row in my mshflexgrid on top of the grid after returning from another form.

    I saved the last used row and it works fine as long as the last used row resides in the first 20 rows of the grid.

    When the last used row is greather than 20, by manually scrolling down to row 50, i can't see the last used row after returnong from another form, unless i scroll down manually to that row.

    I need to position my grid that the last used row will be displayed between the first and the twentiest row on the grid.

    I found how to get it on toprow.

    MSHFlexgrid1.Toprow = nRow where nRow is the last updated row.

    How can i display that row in the center of my grid, on row 15?
    Last edited by marex; Dec 19th, 2007 at 03:37 PM. Reason: [RESOLVED]
    Ray

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

    Re: MSHFlexgrid position problem

    Make the TopRow 15 rows before the last updated row.

    MSHFlexgrid1.Toprow = nRow - 10

    Also, make sure nRow-10 is not an invalid row #.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Worldwide in the Sun
    Posts
    566

    Re: MSHFlexgrid position problem

    Quote Originally Posted by brucevde
    Make the TopRow 15 rows before the last updated row.

    MSHFlexgrid1.Toprow = nRow - 10

    Also, make sure nRow-10 is not an invalid row #.

    Thanks brucevde, your solution puts me on the right way.
    Ray

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