robsuttonjr
MIS
I have a grid with a combobox I inserted. I cannot get the combobox to drop down and show the data from the cursor I am binding it to. I want the data in the cursor selected by the combobox to replace the grid column controlsource value or display it. I have tried a sql query as the style and changing sparse and other settings. Just cannot seem to figure out why I can't get the combobox to fill from my cursor data. Also note that I set the grid recordsource to "cpti" after I build the cursor. I created a new form with just a grid and added a combobox to column3. I can get the dropdown to work if the grid recordsource is a physical table but not a cursor. Makes no sense.
** cursor used for grid combobox for 'packdate'
Create Cursor cPackDate(PackDate c(8))
Insert Into cPackDate (PackDate) Values(" ")
Insert Into cPackDate (PackDate) Values(Dtoc(Date()))
Insert Into cPackDate (PackDate) Values(Dtoc(Date()+1))
column7
sparse = .F.
controlsource = cpti.packdate
bound=.T.
combo1
Bound = .T.
Style = dropdown list
rowsource = cpackdate.packdate
rowsourcetype = 6 - fields
Regards,
Rob
** cursor used for grid combobox for 'packdate'
Create Cursor cPackDate(PackDate c(8))
Insert Into cPackDate (PackDate) Values(" ")
Insert Into cPackDate (PackDate) Values(Dtoc(Date()))
Insert Into cPackDate (PackDate) Values(Dtoc(Date()+1))
column7
sparse = .F.
controlsource = cpti.packdate
bound=.T.
combo1
Bound = .T.
Style = dropdown list
rowsource = cpackdate.packdate
rowsourcetype = 6 - fields
Regards,
Rob