General information
Category:
Forms & Form designer
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only