Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Scrolling..
Message
From
06/07/2001 04:33:17
 
 
To
05/07/2001 14:35:05
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00527115
Message ID:
00527342
Views:
30
Hi!

If you meant that scrollbars are not refreshed properly after user change the width of the columns or new columns added to grid, set scrollbars:
Grid.Scrollbars=0
DOEVENTS
Grid.Scrollbars=3 && or whatever
Do above just after you added new columns, or just in the Refresh of grid.

If you meant that after scrolling when used use arrow keys or TAB key to navigate grid rows grid jumps to the active column, just put a code in the Scrolled event to activate a column that is the irst column in the visible area of the grid; do this only when grid scrolled horizontally. When you want the same for vertical scrolling, just locate the required record in the record source of grid. Code for horizontal scrolling to focus column that is currently the leftmost column in the visible area of grid (assuming "this" as a grid reference:
for i=1 to this.ColumnCount
  if this.columns(i).ColumnOrder=this.LeftColumn
    this.columns(i).SetFocus
    exit
  endif
endfor
HTH.

>to all
>i am using a grid to display the results of a cursor brought back from sql.
>when i scroll horizontally the scroll bar will only bring me so far, i then have to to tab to see the remaining columns that were brought back. it seems as though that scrolling has a limitation. is there a property or method that can be set to get around this. i would like the grid to behave just like a browse window to display my query results.
>tia
>frank
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform