Gridview rowupdating object sender gridviewediteventargs e
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.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?You could cache the object that you are going to use as a data source too.
Data Bind method to bind the Grid View to the data source.
This makes the data in your Grid View is available in the Page Load event...including data entered by the user.
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.
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.