Steve Ellenoff wrote:
> I have a grid on a form bound to a cursor. Let's say the cursor has 
> 20 records, but the grid is sized to show only 10 at time. When you 
> issue a refresh on the grid, the scroll bars are always reset to the top.
> 
> *Is there a way to avoid this behavior so that if a user had scrolled 
> to the middle, and the form needs to refresh, it doesn't move the 
> view back to the top?*
> 
> I've noticed that this unwanted behavior does not occur if the user 
> changes the selected row/cell to something visible in the scrolled 
> area before the refresh had occurred.
> Unfortunately, though, sometimes the users just scroll and so the 
> selected row/cell stays at 1, but the user has scrolled to the bottom 
> of the grid.
> 
> As a solution, my gut feeling then is to somehow change the selected 
> row/cell based on the scrolling event, but I'm not sure how to do this?
> 
> Any ideas anyone on how to solve it properly?


I save the current location (usually via PK value) and then re-seek the 
value after requerying/refreshing the data.  That works for me.  But a 
basic refresh I wouldn't think should be doing this.  Are you sure 
there's no logic in the framework underneath that's causing this?

-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to