Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restricting entry to only one row in a grid
Message
De
17/04/2004 04:47:39
 
 
À
16/04/2004 17:08:09
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00895729
Message ID:
00895797
Vues:
17

Having trouble getting my grid to only restrict entry to the current row. Does anyone else do this?
I'm allowing the user to click an Edit button and then trying to enable the current control which is normally disabled.
This almost works, but a couple things happen - the highlight that
I use does not display when the control is not enabled and if it is enabled it is enabled for all rows.


The solution is to disable the grid without disable the column,
but VFP copy Grid Enabled into all columns Enabled and any Column Enabled into all controls Enabled
( One absurd what, it simplified the graphical operations, but destroy all the Enabled configuration into
a grid )
Another way is:
Procedure Grid.When
 IF GridIsDisabledCondition
   RETURN .F.
 ENDIF

I want to retain my highlighting when not editing the control and restrict movement to another row unless the Save button has been clicked. Just can't seem to get my thoughts around this one.
* THIS IS SIMPLE INTO vfp8, but it is not complete because VFP have problem into RowColChange value
PROCEDURE Grid.BeforeRowColChange
IF BITTEST(m.this.RowColChange,0) && row change
   NODEFAULT
   RETURN
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform