Page 1 of 1

Catch the description field in the View (Firebird 2.5)

Posted: 07.11.2013, 12:27
by fredutsch
How do I add a property (DisplayLabel) in the DataSet component Zeos. This property must contain a description of the field in the View.

Re: Catch the description field in the View (Firebird 2.5)

Posted: 13.11.2013, 06:30
by marsupilami
Hello fredutsch,

I am not sure what you mean. But DisplayLabel usually is a property of a TField descandant. If you have persistent fields, you can edit this property in Delphi. If you have dynamically created fields, you can edit the value like this:

Code: Select all

procedure TSomeForm.SomeQueryAfterOpen(Sender: TObject);
begin
  SomeQuery.FieldByName('SOMECOLUMN').DisplayLabel := 'MyLabel';
end;
This will display the label MyLabel on the column SOMECOLUMN in any TDbGrid.

Best regards,

Jan