If you're using SQL as your datasource for DBGrid, you can use the following syntax:
Select fieldname as newname from table
For example:
Select empno as [employee id] from employee
will populate the header with "employee id" instead of empno when using MSAccess.




Reply With Quote