Código Delphi
[-]valorPrev := DBGrid.DataSource.DataSet.Fields[DBGrid.SelectedField].AsFloat;
Cita:
Read SelectedField to obtain access to the field component for the currently selected cell.
|
Cita:
Read SelectedIndex to determine which column in the grid has focus
|
SelectedIndex te devuelve el Nº de Columna del Grid. En cambio SelectedField te devuelve el campo que has seleccionado.