Ver Mensaje Individual
  #2  
Antiguo 12-04-2007
Avatar de gluglu
[gluglu] gluglu is offline
Miembro Premium
 
Registrado: sep 2004
Ubicación: Málaga - España
Posts: 1.455
Reputación: 21
gluglu Va por buen camino
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.
__________________
Piensa siempre en positivo !
Responder Con Cita