Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Adding a Combobox to a grid, says READ-ONLY
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement