VFP (6.0) isn't making much sense to me today (or ever, really). I have a legacy prg I'm adding to. I've added a grid to a form with 2 columns, and a combo box to that grid in the first column. I need to populate the combo box with a list from a table. There are 3 items in the DB right now and what happens is this:
In the comboBox init I open the table, scan through it and .addItem. When the form shows and I look on the grid, there are 3 rows of the grid filled in, with the combobox text set to the first, second, and third one, respectivly. If I change the second row's text to the thirds text, it changes it in the table.
I don't want these to change ever, just read from the table, which is part of the reason I didn't bind the grid control to a table. I don't know what to do. Any one have any thoughts.
In the comboBox init I open the table, scan through it and .addItem. When the form shows and I look on the grid, there are 3 rows of the grid filled in, with the combobox text set to the first, second, and third one, respectivly. If I change the second row's text to the thirds text, it changes it in the table.
I don't want these to change ever, just read from the table, which is part of the reason I didn't bind the grid control to a table. I don't know what to do. Any one have any thoughts.