Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying all rows in grid

Status
Not open for further replies.

vanni75

Programmer
Nov 27, 2002
29
BE
Hi,

I have a table with 5 rows. The grid can display all rows. but when I'm on the last record and i change the order and then resets the order, the only record that is visible is the last one. The rest are not visible , I have to scroll up to see them. How can I prevent that only the last one is displayed and that I not lose the highlight on the last?

many thx
 
vanni75,

behind the scenes in code use the doscroll method of the grid to scroll the grid back up to that all rows are visible.

Grid.DoScroll(nDirection)

...you can use thisform.lockscreen settings to minimize/eliminate the jumping that the user would see...a similar scheme works very well for me in grids with 1000's of records, so it should work even better for a grid showing only 5


Slighthaze = NULL
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top