Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Value of chkBox in Grid
Message
From
21/11/2002 16:09:01
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00725392
Message ID:
00725458
Views:
8
>You mean using the replace command?

Yes.

I suggested doing a full grid refresh and because you are calling the form's Save method (in your sample code), this actually calls a RefreshAll in the Codemine framework so you end up getting the grid refresh along the way. However, the RefreshAll method (called by your form.Save) updates/refreshes a load of other stuff that again may cause too much overhead. You can save on the individual cursor by just calling its Update method (or via the DM). Then, by just refreshing the grid only, it should be quicker.

I was actually suggesting that you replace this :-
THIS.PARENT.PARENT.COLumn4.CHkcheckboxcustom1.SetValue(1)
with a data-replace to its Control source, "Update" the cursor (if you want), and then refresh the grid. If the grid source is buffered, you can discard the changes or as you said, its easy enough to reset it anyhow, even if the changes are committed right away.

Either way, you are on the right track now.

Best
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform