Board index » delphi » How to set a name for the column?

How to set a name for the column?


2003-07-29 03:38:21 AM
delphi237
How to set a name for the column of DBGrid???
But not the fieldname, just to look more understandable for user?
 
 

Re:How to set a name for the column?

"Vycka" <XXXX@XXXXX.COM>writes
Quote
How to set a name for the column of DBGrid???
But not the fieldname, just to look more understandable for user?
Not really an IBX question, but:
DBGrid1.Columns[x].Title.Caption := 'Column Heading.'
 

Re:How to set a name for the column?

If there is nothing in your dbgrid columns definition, you can use the
persistent field DisplayLabel property. You can also add the columns to the
grid and change the displayname property of the column.
For more help, select your dbGrid and hit the F1 key.
"Vycka" <XXXX@XXXXX.COM>writes
Quote
How to set a name for the column of DBGrid???
But not the fieldname, just to look more understandable for user?