Home > Back-end >  TDBGrid how to customize header
TDBGrid how to customize header

Time:09-26

TDBGrid data from ADOQuery1, display the header is the database header, how to define your own header, rather than a header from a database

CodePudding user response:

Define the DBGrid Column, and a header

CodePudding user response:

Set the number of Columns TDBGrid, then an account for each Column header.

CodePudding user response:

For I:=0 to DBGrid1. Columns. Do the Count - 1
DBGrid1. Columns [I]. Title. Caption:='123';

CodePudding user response:

There are two ways to
The first: dynamic
DBGrid1 - & gt; The Columns [I] - & gt; The Title - & gt; Caption:='123'.
The second: static
Design period directly in the each field of ADOQuery1 Settings
  • Related