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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I focus on a cell in a scrolling FlexGrid ?

Status
Not open for further replies.

Nojj

Computer
Joined
Apr 8, 2003
Messages
10
Location
GB
I have an MSFlexGrid with lots of rows so it has a vertical scroll-bar. How do I set the focus on a cell which is off the screen (i.e. force the flexgrid to scroll down until it shows)?


 
Look at the .TopRow property. It sets or returns the top visible row of the Flexgrid, so setting it to the selected row will show the selected row at the top of the grid.

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting
 
Thanks a lot JohnWM. That does the trick!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top