Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Combo box in a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00551619
Message ID:
00551622
Vues:
12
>Hi,
>
>I am using the standard Visual Foxpro grid. But I want to change one of the column to be a combobox instead of the standard textbox. How can I do this? Thank you.
>
>Neetu Kumar

Add a ComboBox to the column and set the Column's .CurrentControl property to be the name of the ComboBox:

thisform.Grid1.ColumnX.CurrentControl="combo1"

You can do this visually in the form designer or you can make a new grid class specifically for use with this table with the class designer.

Or you can do this programmatically in the Grid.Init, adding the new control. Just be sure to also set the new control's .Visible property to .t., and to set the column's .Sparse property to .f. if you want to see the control on all rows of the grid.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform