View Single Post
  #2 (permalink)  
Old April 16th, 2008, 06:04 PM
mat41 mat41 is offline
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

You say datagrid - This sounds like a .net question to me. Are you .neting? If so this is the classic ASP area of worx. If not I use:

Response.ContentType = "application/vnd.ms-excel"

to achieve this, it works very well. Throw the above syntax into Google you will come up with useful links liek the following which holds your solution:

http://www.15seconds.com/issue/970515.htm

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote