Restore datagrid after panel visible

Posted on 2012-08-23
Last Modified: 2012-08-27
Hi experts,
I have a datagrid using DataSourceID. It loads on form load, but loses data when the panel it's in is made visible again.
Ideally I'd like to use a viewstate to restore the data.
I try using rebind but it doesn't do anything, and I can't use a datasource from code behind.
Any good ideas?
Question by:Netlink2
    LVL 26

    Accepted Solution

    You say you have tried?:


    Are you toggling the visibility of the panel via clientscript or serverscript?

    If toggleing visiblity via clientscript and If the datagrid is in an updatepanel, you could try to databind the updatepanel.

    LVL 1

    Author Comment

    I believe that would work. I'll give it a try.
    LVL 1

    Author Closing Comment

    It may not be ideal, but I guess using JavaScript to hide/show the panels is the only way. Thanks.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    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…

    731 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

    16 Experts available now in Live!

    Get 1:1 Help Now