Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids and combo boxes
Message
De
01/12/2003 08:43:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grids and combo boxes
Divers
Thread ID:
00854639
Message ID:
00854639
Vues:
60
Hello fellow FoxPro programmers. I hope y'all can help me with this
problem.

I have a grid with a combobox in one of the columns.

My problem seems to be in getting the unselected rows to behave
properly.

Here are the setting in the properties of my grid

myGrid
Recordsource gridtable

myGrid.Column1

ControlSource gridtable.itemno
CurrentControl myComboBox
Sparse .T.

myGrid.Column1.myCombobox

Boundcolumn 2
RowSourceType Alias
Rowsource invtsub.descrip,itemno

The behavior I wish to have is:

Unselected rows, show the item description from the table invtsub.dbf.

Selected rows, show the item selected in the combobox. This one works
fine but the unselected rows don't behave as I want. All I can seem
to manage is to display the item number instead of the item
description. How do I get it to display the Description and NOT the
item number in those (unselected) rows. I tried setting the
controlsource for the textbox control in the column as the
description field but to no avail.

Any help here would be appreciated. Please send response by email.

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform