Ver Mensaje Individual
  #3  
Antiguo 28-05-2011
luchifer luchifer is offline
No confirmado
 
Registrado: jul 2007
Ubicación: Santa Cruz - Bolivia
Posts: 50
Reputación: 0
luchifer Va por buen camino
formulas en el dbgrid

Personalmente utilizo el evento ONCOLEXIT o ONENTER del DBGRID y coloco por ejemplo la siguiente instruccion:


if (dbg_insu.SelectedIndex=4) then
begin
xtotal:=roundto(dbg_insu.Fields[2].Asfloat*dbg_insu.Fields[4].asfloat,-2);
end;


dbg_insu es el dbgrid
Responder Con Cita