M
Michael Loughry
In my company's product, we set the ColumnHeadings.Caption property for each
column to be the description of the data in that column ("Address", "ID",
"Name", etc.). We do this largely so that the headers are not sorted with
everything else when the user sorts the whole table, but also so that the
table looks nicer.
However, when the user clicks the "Export Spreadsheet to Microsoft Excel",
these headers are not exported along with the data.
So, my question is how to have these headers exported as well? If that is
not possible, how might we be able to lock the first row (with the headers)
such that it cannot be sorted, whereas the rest of the data can still be
sorted? (Row.Locked = true does not seem to work.)
Any help would be appreciated.
column to be the description of the data in that column ("Address", "ID",
"Name", etc.). We do this largely so that the headers are not sorted with
everything else when the user sorts the whole table, but also so that the
table looks nicer.
However, when the user clicks the "Export Spreadsheet to Microsoft Excel",
these headers are not exported along with the data.
So, my question is how to have these headers exported as well? If that is
not possible, how might we be able to lock the first row (with the headers)
such that it cannot be sorted, whereas the rest of the data can still be
sorted? (Row.Locked = true does not seem to work.)
Any help would be appreciated.