Hello Tom,
Based on my experience, the problem you met is likely caused by the data
bound to the GridView. I suggest you try saving the exported file as xls or
csv on the client machine and then use notepad or any other text editor to
open it. You can check whether all the data rows and columns(from
server-side datasource) have been persisted in it. If those rows and
columns are missing, it should be caued by some problem with the
server-side gridview databinding and the code logic of flushing the data to
response stream. If the data rows/columns are all persisted in the file,
that means the server-side page/handler has successfully render out the
data, but the cilent-side excel fails to display all the columns when
parsing the file/response stream. How do you think?
BTW, would you provide some detailed code logic on how did you render out
the GridView data as csv format or directly render out the GridView?
Please feel free to let me know if there is anything I missed.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.