Updating row in gridview fenske dating
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?
What you would have to do is implement a method that handles the Grid View. In this method you will have to retrieve the data from the row that is updating and use this data to update your database.
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'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.
NET pages in our website project that we'll need for this tutorial and the next two.Anyways, once you've populated your data source (or retrieved it from cache) you set the Grid View.Data Source property to the object you are using..call the Grid View.Rather than using a button, two other user interface elements are commonly used for selection: the radio button and checkbox.We can augment the Grid View so that instead of a Select button, each row contains a radio button or checkbox.