Topic: Why am I getting the previous value
Dear all,
I have added a table grid to extract a value from a foreign key for comparison. I appended the column containing the foreign key. However, when I use the following code:
times.Label20.Caption := times.TableGrid1.Cells[6, selectedRow];
I notice that the label displays the number of the previously selected row instead. Can anyone shed light on why this is happening? Additionally, is there an alternative method to retrieve the foreign key from the selected row without displaying it?
and also when I add this line to (on change) in the table grid I get an undeclared identifier!" Why does this happen ???
Thanks