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.
(Well it should matter to you because this is a very important behaviour that you need to understand) All you want to do is determine which row the user was editing (which is easily done in the On Row Editing event)..retrieve any information that you need in order to display the information in more detail in some other "page" or "control". This is why you are able to do a Data Bind in your Page Load without losing data entered by the user. I don't know what you're talking about with regards to your "display" method.
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.
I like to be in more control of my database connections. You could do this in your Page Load event if you want to.
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'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....
If I want to access the method in which we define update query, how can I access that method on aspx page & update the data in a grid view without direct use of an query on aspx page under sql data source?
like onrowupdating event after performing all operation i call display method at the end.