Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid with Checkbox
Message
De
29/01/2009 10:45:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/01/2009 10:39:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01378135
Message ID:
01378137
Vues:
28
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform