Solved

Export Grid view problem

Posted on 2008-10-13
3
227 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
Comment Utility
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
Comment Utility
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
Comment Utility
PERFECT!! I guess this allows the gridview to be rendered and exported :-)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

7 Experts available now in Live!

Get 1:1 Help Now