Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a Combobox to a grid, says READ-ONLY
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Adding a Combobox to a grid, says READ-ONLY
Divers
Thread ID:
00364648
Message ID:
00364648
Vues:
60
I'm adding a combobox to a grid in the forms INIT method. However, when I click on the new combobox it say READ-ONLY. Here's the code:


WITH THISFORM.grdMoreDocs.grcDoc_vfy
.ADDOBJECT('cmbDoc_vfy','combobox')
.CURRENTCONTROL='cmbDoc_vfy'
.SPARSE=.F.
.CONTROLSOURCE="eval('documents'+'.'+doc_vfy)"
.cmbDoc_vfy.ROWSOURCETYPE=6
.cmbDoc_vfy.ROWSOURCE="Ldoc_type3.doc_name,doc_code"
.cmbDoc_vfy.BOUNDCOLUMN=2
.cmbDoc_vfy.STYLE=2
.cmbDoc_vfy.READONLY=.F.
.cmbDoc_vfy.VISIBLE=.T.
ENDWITH


The RECORDSOURCE of the grid is a cursor created with CREATE CURSOR, it has a field called "doc_vfy." All of the cursors/tables in the Dataenvironment are updatable. Any help would be appreciated.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform