Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo's Sparse Property.
Message
 
To
29/06/1998 10:18:38
Jayesh Vorani
Technova Imaging Systems Limited.
New Bombay, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00112473
Message ID:
00112513
Views:
29
Hi Jayesh,

Establish the relationship between the Detail table used in grid with the Stock table.

Here is an example which shows the necessary settings required:
*-- Stock Column
Grid.grcStock.ControlSource = "Stock.Description"
Grid.grcStock.Bound = .F.

*-- Stock Column.Stock Combo
Grid.grcStock.cboStock.ControlSource = "DetailTable.cStockid"
Grid.grcStock.cboStock.BoundColumn = 2
Grid.grcStock.cboStock.RowSourceType = 6
Grid.grcStock.cboStock.RowSource = "Stock.Description,cid"
Moreover, you might also have a look at the TasTrade example which comes with VFP. It uses the same concept.


>I am having a combo in a grid which displays the stock table field say name but actually stores stockcode in the table.What control source am i supposed to mention in the column's control source and what in the combo's control source? what the bound property of the table should be set to ? and should there be a relation between the stock and the child table?
>
>Regds.
>Jay.
Previous
Reply
Map
View

Click here to load this message in the networking platform