Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a Combobox to a grid, says READ-ONLY
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Adding a Combobox to a grid, says READ-ONLY
Miscellaneous
Thread ID:
00364648
Message ID:
00364648
Views:
62
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
Map
View

Click here to load this message in the networking platform