Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Row of a grid
Message
 
À
04/05/2005 04:12:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01010583
Message ID:
01010778
Vues:
29
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform