Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid & DynamicCurrentControl
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid & DynamicCurrentControl
Miscellaneous
Thread ID:
00589802
Message ID:
00589802
Views:
60
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,
Yashkamal Patel
Next
Reply
Map
View

Click here to load this message in the networking platform