Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
DataGrid Edit Problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Gozirra, post: 1983029"] I'm glad. I created a small test and everything was working fine. I was getting ready to ask you if you were rebinding somewhere before the update event. It all has to do with the page lifecycle. The Page_Load event fires after the viewstate is loaded but before the update event. When the grid is rebound to the data, the viewstate values are overwritten and the edited data is lost (edited data comes from ViewState). So when the update event is fired later in the cycle, it reads the data and as you found out, you are left looking at the same values prior to the edit. This link in MSDN will show you the order in which events are fired. Its actually for Mobile web forms but it holds true for standard pages as well. ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.MOBEMBDEV.v10.en/mwsdk/html/mwconUnderstandingtheLifeCycleofaMobileControl.htm [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
DataGrid Edit Problem
Top