Solved

Export Grid view problem

Posted on 2008-10-13
3
228 Views
Last Modified: 2013-12-17
Hi,

I have managed to export a gridview without a problem. The problem I am having is, that I do not want the gridview to show up from start up. Which i used gridview1.visible = false;

Later this is set to true. But then when the data is loaded etc. and I click on the export button, it exports no data! When I take off the visible false from page load, it all works fine.

Any idea how I can sort this problem

Regards,

introlux
0
Comment
Question by:introlux
3 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 22701902
Don't place the gridview in the design mode.

On click of the export button, just declare a temporary grid in the buttonclick method and then export this gridview to excel
0
 
LVL 8

Accepted Solution

by:
tiagosalgado earned 500 total points
ID: 22701910
Instead of Visible = false/true, use gridview1.style.add("visibility","hidden") and to show it gridview1.style.add("visibility","visible").
0
 

Author Closing Comment

by:introlux
ID: 31407054
PERFECT!! I guess this allows the gridview to be rendered and exported :-)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now