Change headers in printgrid

How can I access detail headers used in frPrintGrid so I can change alignment and text?

Comments

  • edited August 2004
    Support please. Assume that the grid is generated from a dynamic query, so fields are unknown at design time.
  • gordkgordk St.Catherines On. Canada.
    edited 2:16PM
    Hi The properties of the printgrid columnheader that can't be set from the header prop of the printgrid object can be changed in the grid itself.
    after activating query and before calling showreport

    procedure TForm1.Button2Click(Sender: TObject);
    begin
    query1.active := true;
    dbgrid1.Columns[0].Title.Caption:= 'Mynew title';
    frprintgrid1.showreport;
    columns index is 0 based array of TColumn
    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.