Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and selected control
Message
From
16/09/1997 22:42:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/09/1997 17:21:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00050135
Message ID:
00050337
Views:
27
>Thank you, Edward for your answer!
>I start to "play" with dynamiccurrentcontrol as you suggested. It started to work as I wanted, except ..
>So, something is still wrong, because it show the combobox on starting the form and if I change row on different field, than this one, which contains combobox. But if I change the row from the field containing the combobox, on the next row (up or down is equal) a text box will appear. (for a very short period the combobox appears)
>
>Can you give me any suggestion?
>
>TIA
>
>BB
>
>>>Hi Everybody!
>>>
>>>I have a grid, and a combobox in one of its coloumn. The Sparse property of the column is set to false, so textbox changes to combobox only that case, when the the field is activated. (focused)
>>>Is it possible to change to the combobox instead of the default textbox, when the user activate any field in the row?
>>>
>>Instead of playing with Sparse (btw I guess you have Sparse=.t.), use DynamicCurrentControl property and reevaluate it using RECNO().

Set DynamicCurrentControl property to something like iif(lCondition,"MyComboBox","AnyOtherControl") and sparse to .t. as Edward said. It works just fine. This is from my working project iif(bilgi_turu = 1,"Uruncombo11","Uruncombo21"). It uses two different combo class based on a field value and combo only gets in action when the cell has focus.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform