[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?
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 #.
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.