Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid with Checkbox
Message
From
20/02/1998 01:29:07
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00079961
Message ID:
00080032
Views:
29
>Does a class exist for a grid which has a checkbox as one of its columns? The plan is to perform an operation on child records based upon whether a check is in the box for a particular record.
>
>TIA for any helpful info,
>
>Bill

I frequently use checkboxes in grids. Here's how:

* Select the grid on the form.
* Choose the column (the one you want to add the checkbox to) from the dropdown list at the top of the Properties sheet.
* Select the checkbox tool from Form Designer toolbar, go back to form and click on the column to add it. (Scroll the grid first, if needed.)
* Go back to properties sheet and select that column's default textbox control.
* Click on the form's title bar and hit your delete key to get rid of the textbox. Your checkbox should appear in the grid now.
* Set the column's sparse property to .F.
* Remove the checkbox's caption (usually) and set the column's controlsource and width (usually small, like 25).

That should do it. Hope this helps.

--Greg
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform