Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic comboboxes in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00612341
Message ID:
00612351
Views:
23
>Hello All,
>
>I have the problem which makes me feel stupid. I have a grid where I want to add several combobxes into one column at startup basing on table content and then switch between them via dynamiccurrentcontrol property. In the grid's init() I have the following code:
>
>select table
>scan
>with this.column2
> .addobject([cmbFl]+alltr(str(table.key)),[cmbFlags])
>endwith
>endscan
>
>then grid has the dynamiccurrentcontrol="this.mRefreshcontrol"
>
>mRefreshcontrol method is:
>return [cmbFl]+alltr(str(table.key))
>
>when I run this grid then instead of comboboxes I see the grey space. If I add these comboboxes in Class designer then everthing works fine.
>
>What I'm doing wrong?
>
>TIA


Hi Vlad,

Does the column2.Currentcontrol property show the correct combobox name at runtime?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform