Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unbound Checkbox in a grid behaves wacky
Message
 
To
04/08/2003 09:46:39
John Fitzgerald
Kenneths Hair Salons & Day Spas,Inc.
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00816014
Message ID:
00816521
Views:
20
>It's maintenance screen for updating a confirmation type character field. The field holds 1 of 4 values, P for phone, M for Machine, E for Email, or N for No confirmation. The grid holds a list of records and sets a filter to confirmation method = 'E' for Email. With this particular screen I want the user to click the check box for the corresponding record in the grid and in the valid event of the check box I wanted to change the E to a M in the table.

Okay, I think maybe I understand. I think the "unbound" part is the problem. It sounds like you have a couple options, 2 of which might be:

1) You would want to add a logical field to the grid's source (view/cursor/table) for the checkbox and bind it. AFAIK, an unbound checkbox in a grid will generally not have good or reliable bevahior (from some attempts at this years ago). Once it's bound, the behavior should be good. vfp7 and earlier, you may want a container over checkbox to position the checkbox nicely. In vfp8, container not needed, there are good properties for positioning.

2) Or, you could forget the checkbox column and use a bound combo for the char field. If user changes to 'M' (or another type, how many types in the combo are up to you) then you just refresh and the record will be updated and disappear from the grid, from the filtering.

If I'm understanding this right, anyway.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform