General information
Category:
Coding, syntax & commands
Title:
Grids and combo boxes
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only