Asp net gridview rowupdating event


23-Sep-2017 21:35

In this, my Text is giving me the correct value, i.e.

of the 1st column but when I am changing the cell value to 1,2,3,4,5,6 I am getting empty.

To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.

asp net gridview rowupdating event-48

online dating sunshine coast queensland

Now I will show you the C# code behind file of the above ASP.

Suppose we’ve to work on Customer table having Category ID as foreign key.

Next Select your database and Set “Save Entity connection string in Web.config as” option true giving name Sample Entities.

Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.

asp net gridview rowupdating event-10

Aol interracial dating chat rooms

If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.

In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.