>I'm real new to VFP, so bear with me :)
>
>I added a 6 column grid to a form. All 6 columns defaulted to textbox objects. I want to change the 1st column to be a combobox that pulls values from a lookup table. If user select a choice from combobox, I want to save that value to a field in the child table associated with grid...
>
>I assume I would only want a combobox in the column, not in addition to a textbox, right?
>
>So much to learn :)
Just drop the combo from the toolbar, project manager or class browser on the column. Then in the PEM window, select the textbox in that column (you should see that the column now has header, textbox and combo). Now click the title bar of the editing window (not anything in the window, just the title bar), and press Delete. This should delete the textbox and leave you with just the combo. It'd also be a good idea to set .currentcontrol="combobox1" (or whatever the combo's name is).
You could do this much easier with a builder, though - less chance of screwing up. Something like this:
Click on the grid so it's selected. Now in command window:
set classlib to mylib.vcx
aselobj(a)
oGrid=a[1]
oCol=oGrid.column1
oCol.addobject("cboMyCombo", "mycombo")
oCol.RemoveObject("text1")
oCol.currentcontrol="cboMyCombo"
That's your builder :).