Gridview not updating with TimerControl

Last post 09-17-2006 8:03 AM by richieNSS. 1 replies.

Sort Posts:

  • Gridview not updating with TimerControl

    09-13-2006, 5:37 PM
    • Member
      5 point Member
    • markllemmon
    • Member since 09-06-2006, 3:09 PM
    • Posts 1

    I have a gridview in a page that uses an objectdatasource. The gridview has sorting enabled. The gridview is inside an updatepanel that has a trigger attached to a timer. The gridview will not rerun the datasource on timer expiration. i know the timer works because I have a label that changes the time everytime the timer expires.

    If you resort the gridview it will update.

    Any idea's?

  • Re: Gridview not updating with TimerControl

    09-17-2006, 8:03 AM
    • Member
      15 point Member
    • richieNSS
    • Member since 09-15-2006, 6:11 AM
    • Posts 4

    I have spent ages with the same problem.

    in the page load function rebind the control.

    GridView1.DataBind();

    this seams to work.

Page 1 of 1 (2 items)