OFF topic : How can I change the fields name in DBGrid

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
rgkx
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 06.05.2009, 23:51

OFF topic : How can I change the fields name in DBGrid

Post by rgkx »

hi guys ,

I´m using lazarus and zeos db and I was wondering how can I change the default fields names that DBGrid take from the table ?

Is there an advanced DBgrid Tcomponent to use in lazarus ?

Thanks ,

Regards ,
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Can't you just set them using the IDE? Just double click the grid name in the object inspector tree and you can select the columns. Then you can set column properties.

Mark
Image
trupka
Expert Boarder
Expert Boarder
Posts: 140
Joined: 26.08.2007, 22:10

Post by trupka »

2 ways to do it:
1.) double click on ZTable/Z*Query opens fields editor. Right click inside and Add fields. Click on field of choice and in object inspector change DisplayLabel property.
2.) right click on TDBGrid and then Edit columns... opens column editor. Add as many columns as needed and for each column fill-in FieldName and Title.Caption propert in obj. insp.
Post Reply