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
995
automatic update
posted

Hi, in your documentation it says : "With ASP.NET 2.0 DataSource Controls such as the SqlDataSourceControl, the WebGrid can provide automatic updating - no code required"
This is beautifull, however if I modify my grid and I go to another page, my modifications are not saved.
So how do I commit those changes automatically to the database?

Thanks

Parents
No Data
Reply
  • 45049
    posted

    You have to trigger a postback before you navigate to another page for the automatic update to occur.

    Alternately, you can enable the grid's AJAX functionality.  In this situation, updates will be processed via AJAX whenever the active row of the grid changes or the grid loses focus.  Even here, though, the update condition (active row change or grid losing focus) must occur before you navigate, or changes will not be processed.

Children