In Delphi 2007 I have a DBGrid. I need to fill a ComboBox when a row in the DBGrid is selected. The data in the the ComboBox depends on the selected row, and can be different for each selected row.
The DBGrid contains products orders. When an order is selected, I need a ComboBox to be filled with batch numbers of the product in the order. This batch number is saved in the order record, when the order is executed.
I could not find a onSelect or onChange event, which I could use to do this.
So how can I do this?
You should use TDataSet.AfterScroll event