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!

Jump to a row with MS Flex Grid

Status
Not open for further replies.

StuH

Programmer
Mar 25, 2001
53
AU
Hi,

I'm using MSflxgrd.ocx and have 250 rows of data in it with a viewable window of 25 rows.

I need the grid scrolled to the end programmatically so I can add an extra row and enter more data as a new record. Can anyone tell me the method I use to do this?

How do I jump to any particular row so it appreas in the viewable window?

Thanks.
 
Nevermind, I just worked it out:

If Totalrecs < 26 Then rowpos = 1 Else rowpos = Totalrecs - 24
Grid1.TopRow = rowpos

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top