Gridview updating new values
This article explains how to perform insert, update and delete operations in ASP. Let us take an example to perform CRUD operations using Entity Framework Database First approach.
Suppose we’ve to work on Customer table having Category ID as foreign key.
Nor does it represent the opinion of my dog, because I don’t have one.
I am only going to show the different ways we can use code to take the value from Grid View.
First, we have to very be clear in our mind that there are mainly two ways of taking the cell value from the Grid View: This code is for taking the value apart from the Grid View events; that is, any common event using a sender object.
But ensure that the control/link is inside the Grid View, only then can we cast sender as Grid View.
This code is a bit complex but just add it knowing that we may refer to it in the future.
In this article we are going to take a look at an alternative method of updating only the changed rows.
How Edit Operation works When a user clicks on the pencil image button used for editing, the Grid View enters into Edit mode and the Figure 2 The figure above shows how it looks when the Grid View enters into Edit mode.