Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid with Checkbox
Message
From
29/01/2009 10:45:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/01/2009 10:39:59
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01378135
Message ID:
01378137
Views:
24
>Hi.
>Is it possible to create a grid control with each row
>containing a checkbox?
>Thanks in advance!

Yes, you can put almost any control into a column. But it requires a few extra steps.

Mainly, at some steps you have to select objects in the property sheet. Just selecting in the form is not always possible.

After adding a CheckBox to a column, the column will have two objects - the original TextBox, and the CheckBox.

You can delete the TextBox, which you will probably not need.

For the column, you have to change the CurrentControl, so that it actually uses your CheckBox.

For most controls except a TextBox, you have to change the Column.Sparse property - otherwise, you will only see the CheckBox (or other control) in the selected row.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform