Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids and combo boxes
Message
From
01/12/2003 08:43:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grids and combo boxes
Miscellaneous
Thread ID:
00854639
Message ID:
00854639
Views:
59
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
Next
Reply
Map
View

Click here to load this message in the networking platform