>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