Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
WebGrid doesn't refresh inside WARP
posted

I have a WebGrid inside a WARP control that is set to refresh on the click of a button. The WebGrid is set to loadondemand and paging. Now when I refresh I rebind the webgrid with new data from the database. The only time I see it refresh is when I select a new page. Now I'm not all that tied to using a WARP but I need the webgrid to refresh asynchronously with updated database data. How might I go about doing that?

  • 19308
    posted

    If you have ViewState on for the page, it's possible that all the data that the grid needs is already stored in it, and the grid doesn't need to rebind on a postback.  You can always force it to rebind by calling "DataBind". 

    Hope this helps,

    -Tony