Re: [Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012

2012-11-01 Thread Luca Olivetti

Al 31/10/2012 17:02, En/na Héctor F. Fiandor Rosario ha escrit:

dear colleagues:
i have found how to fix the name of columns with the field´s name, and i
have found how to fix the width of each colum. It works in a pretty way.
as i have 20 fields with data about projects, the last ones scroll the
screen to the right and the PC´operator lost the project´s name and i am
thinking to put and edit box in the upper place of the DBGrid to show
the project´s name (one of the firsts fields of the record) for the
active row. If i used a simple edit box, it can be programmed in the
OnKeyPress Event, but I don´t know how to do it in the case of a dbGrid.


Just use a TDBText (ot TDBEdit) connected to the same data source as the 
dbgrid.
IF you want to know if the current record has changed, you can use the 
AfterScroll event of the dataset.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012

2012-11-01 Thread Héctor F . Fiandor Rosario
Dear colleagues:

I want to thanks to Luca Olivetti for his help. Really, it work very well.

thanks to all

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu



--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012

2012-10-31 Thread Héctor F . Fiandor Rosario
dear colleagues:

i have found how to fix the name of columns with the field´s name, and i have 
found how to fix the width of each colum. It works in a pretty way.

as i have 20 fields with data about projects, the last ones scroll the screen 
to the right and the PC´operator lost the project´s name and i am thinking to 
put and edit box in the upper place of the DBGrid to show the project´s name 
(one of the firsts fields of the record) for the active row. If i used a simple 
edit box, it can be programmed in the OnKeyPress Event, but I don´t know how to 
do it in the case of a dbGrid.

Another question: Can I obtain the Sum of each colums and put in a StringGrid 
placed above the DBGrid?

thanks in advance,

yours truly,

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu

--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus