Catch the description field in the View (Firebird 2.5)
Catch the description field in the View (Firebird 2.5)
How do I add a property (DisplayLabel) in the DataSet component Zeos. This property must contain a description of the field in the View.
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Catch the description field in the View (Firebird 2.5)
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:
This will display the label MyLabel on the column SOMECOLUMN in any TDbGrid.
Best regards,
Jan
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;
Best regards,
Jan