Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo in Grid Question ???
Message
From
05/09/2001 07:53:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00551338
Message ID:
00552415
Views:
22
Hi Borislav.

I forgot to mention this in my previous reply:

>> When The Sprase = .t. The behaviour of the combo is OK but the Grid shows me a code not the Name. <<

This is what I would expect to happen since the grid column is bound to the code. If you want to set column.sparse to true, try setting up your column controlsource like this:

( IIF( SEEK( FirstTable.NumField, 'SecondTable', 'SecondTableIndex' ), SecondTable.Code, '' ) )

And set the column's Bound property to false.

Even though this has the effect of making the column read only, you will still be able to select different items in the drop down list. The reason is that ReadOnly only referes to portions of a control that accept text. A dropdown list does not accept text < s >.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform