Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>other words: I'd like to know if the current row position
>>>is a bottom of the grid.
>EOF() wouldn't work for you. If applicable do something like:
>
>select (Grid.recordsource)
>skip
>llLastRecord = (Child.FKvalue # Parent.PKValue)
>skip -1
Cetin, your suggestion works, although this solution makes a lot of skipping during moving rows of a grid. I only know how to do it from "keypress" method, checking if user pressed cursor down (nKeyCode = 24) and then find out if this is the last record in my child table, skipping one record, as you suggest. This means that if I move down the grid with a lot of rows, it is checked for every move with skip forward and backward.
But my wish is an action only when user wants down on the last row.
Well, I was wondering that there was some trick inside the grid, because the grid knows very well when ActiveRow can't be increased by 1.
It seems there's not such a way.
Thank's, Zlatko.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement