Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid & DynamicCurrentControl
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00589802
Message ID:
00589817
Views:
20
Hi,

You'll get the same result w/o coding if you set Sparse = .T. for both columns and make comboboxes current controls.

>I have a grid with 2 columns. Under form's Init I have following code:
>
>PUBLIC gRecNo
>
>THISFORM.griD1.column1.AddObject('Combo1', 'ComboBox')
>thisform.grid1.column1.Combo1.visible = .t.
>
>DODEFAULT()
>
>And under Gird's AfterRowColChange I have following code:
>
>LPARAMETERS nColIndex
>
>gRecno = RECNO()
>x = 'IIF(RECNO() = ' + ALLTRIM(STR(gRecNo) + ' AND THIS.ActiveColumn = 1') + ', "Combo1", "Text1")'
>
>this.column1.DynamicCurrentControl = x
>this.column1.Refresh()
>
>DODEFAULT(nColIndex)
>
>The above works when the DynamicCurrentControl is used in Column1.
>
>The above should show combobox control when I am in column1 for the row I am on. Now if I change the column1 to column2, and make necessary code changes to point to column2, it doesn't work and doesn't allow me to go in column2.
>
>If you know anything about this, in context to alternative way or if it is a bug, please let me know.
>
>Thank you,
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform