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

Visual Reset of MSFlexGrid

Status
Not open for further replies.

RobHVB6Sql

Programmer
May 20, 2002
77
AU
I hoping this is an easy question for someone.

I have a MSFlexGrid which the user can add and remove columns from via command buttons. Just to look nice I want to finish their addition /subtraction off by sorting the grid (my code is fine here) and moving back to the top of the grid. I cant get it back to the top.

I have tried these
Code:
.refresh
.row = 0
.col = 0
.rowsel = 0

Any suggestions?

Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
 
If the grid has scrolled past the first line, then you can't get back to the top unless you use the toprow property. Set it to 0 and you should get back to the top.

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Cool, that it! thank you.
You can't set .TopRow = 0
Code:
       .TopRow = 1 'move back to top of grid

Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top