Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid & DynamicCurrentControl
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid & DynamicCurrentControl
Divers
Thread ID:
00589802
Message ID:
00589802
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform