Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put a Checkbox in a grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00133914
Message ID:
00134273
Views:
16
>>How do I put a checkbox in a grid? I need to be able to select the items from a grid that get appended to a table.
>>
>>
>>Thanks
>
>Put the grid in edit mode [right click on grid, then click on Edit]. Click on the check box control, then click in the column where you want the check box. Go to properties of the column and make the checl box the CurrentControl.
>
>Many of us, however, will place a Checkbox in a container object in order to center the check box -- the check box is centered in the container [based on container width], and the container width is based on the width of the column. Then we drop the container in the grid column. To make it work, I have had to put code in the column init to bind a data field to the checkbox -- this.container1.checkbox1.controlsource = mytable.fieldname

John (via Mark),
And unless you have a logical field for this purpose already in your table you will have to use a read/write cursor in the grid with a logical field to assign to the checkbox. If I understand your question, you want the checkbox so you can select a batch of records, so you will have to add a field to the cursor or view.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform