Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid's record issue
Message
 
À
09/02/2001 15:14:20
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00474589
Message ID:
00474594
Vues:
26
First, if you use Table buffering for the RecordSource of the grid, you could TableRevert multiple records. But now you're getting into data entry grids, which can be pretty tricky. For one thing, they don't behave correctly if you don't use table buffering.

Since you want to keep your user on the current row, I think the easiest thing to do is not allow them to edit in the grid at all, but in fields below the grid.

>I have a grid (with blue highlighter) and it is ReadOnly = .T. There are Add/Edit buttons (and Delete, but still remains ReadOnly = .T.) for the grid. Now, upon clicking the Add/Edit button, the grid becomes ReadOnly = .F. and thus gives access to any records within the grid. I want to restrict to one record at a time. Meaning, If Adding a record, I want to restrict one APPEND and keep the cursor in that record. If Editing, I want to restrict the cursor to remain in that record. The reason is so the Revert button would effective, otherwise the user could bounce around in the grid and then "opps", clicks the Revert button, too bad, only the record that the cursor is sitting on can be revert while all others are updated. The way I have it set now is upon clicking the Add/Edit, I disable ALL other buttons (including the Exit), and only enable the Save/Revert button.
>
>I don't know how hard this is.
>
>Chuck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform