I'm not even sure you have a question at this point...:) -Frinny @Frinavale Frinny I send You a code , By the way You are so senior & i respect each & every word which you are writing for me....Edit: if you do a Data Bind in the Page Load event every page request all of your data will be lost It's the most common problem that people have with Grid Views that I've noticed.

This saves time but it depends on how long you can tolerate "old data" being displayed.

Anyways, once you've populated your data source (or retrieved it from cache) you set the Grid View.

But if you need to get data from the user for updating purposes then, no, you should do it in the Page Pre Render event instead.

-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).

This thing I have done in data acces layer class where I make a method of an update.

I want to use this method so I can do an update in grid view directly. Grid Views can bind to Data Tables, Data Views, Arrays of Objects ..more.I am just new ,so i m eager to know what is the problem actually . I just need your help Thats it This is a lot easier to understand!Ok the reason why you aren't losing data is because you are only doing your Data Bind in your Page Load event the first time the page is loaded (if ! This way your data is not getting over written when the user-provided-edit-data is posted back to the server.I do this in the Page Pre Render event for a bunch of reasons...example if you bind in the Page Load event every page request you will have problems with getting the values that the user entered while editing (because these values will be over written with the data that you've bound to).In your Grid Views On Row Updating event you will call your data access layer's methods to do the updating.... -Frinny @Frinavale You said that we have to bind object with grid view at page.prerender . What happens is that the View State for the Grid View is loaded just before the Page Load event.BUT this information that I'm telling you does not matter to you because you don't care about anything the user has entered into the Grid View for editing.