2. The table is based on the grids RecordSource property.
From that you can solve 1.
1. In the keypress event you may want to trap for the down-arrow. If pressed, select the alias driving the RecordSource of the grid and issue a skip. If EOF() = .T. add a record, otherwise, return to original record and let keypress do the default to finish the normal scroll process.
>I'm trying to make a grid class where if user presses down arrow on last record, automatically new record should be inserted in the grid..
>
>I've put 'on key label ..' in when event. But :-
>
>1. How can I find that its on last rec ??
>2. How can I find in which table to insert record ??
>
>Pls help..
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