Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Value of chkBox in Grid
Message
 
 
To
21/11/2002 16:09:01
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00725392
Message ID:
00725465
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform