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

how do you reset a flexgrid scroll bar position 1

Status
Not open for further replies.

OrthoDocSoft

Programmer
May 7, 2004
291
0
0
US
folks,

When using a flexgrid, sometimes you scroll down to see data. Then my program can allow you to re-populate the grid with new data. But I don't know how to "reset" the scroll bar position to the top position, which makes the newly populated grid look empty, when actually it's just "scrolled down" past the data it actually holds, but which is "less" (ie, fewer rows) than the previous load.

Is there a way to reset the scrollbar positions to "zero" when you re-populate the data?

I have googled this quite a bit, and have looked in my large VB6 library, so I have worked to try to solve this.

Thanks,

Ortho

[lookaround] "you cain't fix 'stupid'...
 
You did not say which flexgrid but msFlexGrid has:
Code:
FlexGrid1.TopRow = 1
 
CaptainD,

That was it! Star for you!

Thanks, much.

Ortho

[lookaround] "you cain't fix 'stupid'...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top