Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Row of a grid
Message
 
To
04/05/2005 04:12:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01010583
Message ID:
01010778
Views:
28
Thanks for the response, but the selected row will generally not be a row in the visible portion of the grid and to use the relativerow property, the grid must have focus. I was hoping that the relativerow would display a nagative value if scrolled above the visible region. Unfortunately, as soon as the grid gets focus, the grid always ensures the selected row is in the displayed list. What I am trying to do, is circle certain cells in the grid as they scroll, but since I can't query the cell vaules directly, I have to rely on the bound cursor.


>>How can I determine the record that is in the top row of a grid? In other words the selected record is 10, but the grid has now scrolled down about 500 rows, now which record is now the 1st row? Isn't there a Y component compliment to the leftcolumn property?
>
>If you're in grid (that's it has focus) you can use RelativeRow to determine your position in visible part. If grid doesn't have focus then you might achieve the same goal using GridHitTest.
>Say current relativeRow = 5, then you're on 5th row in grid.
>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform