Export to excel doesn't expose that type of functionality programmatically.
You may want to look at a 3rd party or Excel library.
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on
www.lulu.com/owc
$24.99
"Grey" <kj@jk.comwrote in message
news:OP**************@TK2MSFTNGP05.phx.gbl...
>i need to export the data set to excel in asp.net, but my requirement is
need to use the template, i.e. some column should be lock as read-only and
some column should be highlighted. the format cells are fixed. is there any
way to excel the data set to pre-defined excel sheet.