Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Value of chkBox in Grid
Message
 
 
À
21/11/2002 16:09:01
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00725392
Message ID:
00725465
Vues:
10
Gary,

>with a data-replace to its Control source, "Update" the cursor (if you want), and then refresh the grid<

Ok, I think I see what you are saying. I did the following instead:
IF m.nKeyCode = 13
	IF MyGrdTable.wk01 = 0
            * New line added.
	    REPLACE MyGrdTable.wk01 WITH 1
	ELSE
            * New line added.
	    REPLACE MyGrdTable.wk01 WITH 0
	ENDIF
        * New line added.
        THISFORM.cmDataManager.Update('MyGrdTable')
	THIS.PARENT.PARENT.Column4.chkCheckboxCustom1.REFRESH()
	NODEFAULT
ELSE
	DODEFAULT(nKeyCode, nShiftAltCtrl)
ENDIF
This does the trick, even with the refresh just on the chkBox.

Are you saying this takes less overhead, than the Form.Save()? If so, is it because the cmDataManager.Update() just updates the cursor passed to it?

You have been a big help on this one... and I am greateful.

Mel Cummings
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform