Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-10

2do: about DBGrid from hfiandor 31 oct 2012

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

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/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121031/a033eea3/attachment.html>

Reply by email

Héctor F. Fiandor Rosario
to Luca Olivetti: Al 31/10/2012 17:02, En/na H?ctor F. Fiandor Rosario ha escrit: Just use a TDBText (ot…

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

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/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121031/07c4857f/attachment.html>

Reply by email

Luca Olivetti
to Héctor F. Fiandor Rosario: dear colleagues: i have found how to fix the name of columns with the field?s name, and i…

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

Show quoted text 9 lines
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

Reply by email