Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Value of chkBox in Grid
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Change Value of chkBox in Grid
Miscellaneous
Thread ID:
00725392
Message ID:
00725392
Views:
41
I am asking this question here in CodeMine section, as I think my last question about this has to do with how this item is done in CodeMine in particular. Vlad here in UT did help me with a prior Grid question.

In a grid, I am trying to "check" a chkBox of a column after I hit the Enter key in another read only column. I have the following code in the KeyPressEnvent() of the other field:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF m.nKeyCode = 13
	THIS.PARENT.PARENT.Column4.Chkcheckboxcustom1.SetValue(1)
	THIS.PARENT.PARENT.Column4.Chkcheckboxcustom1.REFRESH()
	NODEFAULT
ELSE
	DODEFAULT(nKeyCode, nShiftAltCtrl)
ENDIF
This does allow me to press Save, and the chkBox is then checked like I want. However, I want to see the Check box "checked" as soon as I press Enter.

Someone know what I am missing (other than the fact that grid's are some of my "weakest" points <g>)?

Mel Cummings
Next
Reply
Map
View

Click here to load this message in the networking platform