Rowupdating old values null

Posted by / 28-Jul-2017 15:06

Rowupdating old values null

I like to be in more control of my database connections. You could do this in your Page Load event if you want to.

You could cache the object that you are going to use as a data source too.

I've never actually used the Sql Data Source before. So, you need to populate the object that you are going to use as your data source at some point in your page life cycle.

you also check this link please , by thw way ur link is not working. So, the View State with all of the data for your Grid View is loaded just after the Init event.

This makes the data in your Grid View is available in the Page Load event...including data entered by the user.

-Frinny @Frinavale The event is fired between load view state & save view state when the event is fired it set the values in textbox or whatever server control we used. Then there is no matter of data loss if you load the page again but I have to bind data in a grid view through view state on page load no chance of data loss. NET Page Life Cycle for a more detailed explination. Data Bind in the Page Load event (without checking if it's postback) then you will not be able to retrieve user input in the Grid View. -Frinny The View State is stored some time in between the Page Pre Render event and the Save State Complete event (heading towards the Render stage).

All of this is covered in the article I sent you a link to :) I'm not sure what you mean by: @Frinavale Now i implemented the editing in gridview i handle events & after that i call display method in which i bind the grid view on page load event its work correctly.......

rowupdating old values null-89rowupdating old values null-80rowupdating old values null-70

If you do a Data Bind in your Page Load event every page request (without checking if is Postback is False) then you will be overwritting anything that the user provided.

One thought on “rowupdating old values null”