I have created an application that displays query results in a dbgrid. I
can export the results to .txt or .xls file. However, the column headers
do not get exported. So I end up with lots of data in columns with no header
(makes it kind of useless).

How do I get it to export the column headers along with the rest of the data?