[Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012
Luca Olivetti
luca at wetron.es
Thu Nov 1 13:06:34 CET 2012
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
More information about the Lazarus
mailing list