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

Reply via email to