Rowupdating command

6854933580_2c8b688306_z

You can see the C# code below will give the row number whatever you are editing by New Edit Index property.

So Grid View will put the appropriate row into the Edit Mode by assigning row number to its Edit Index property. You can follow any responses to this entry through the RSS 2.0 feed.

The Grid View is associated with the On Row Command event.

The HTML code for the Grid View is as follow : Till now everything looks fine but the problem arises when you run this application.If we use proper command names for the buttons like “EDIT”, “DELETE”, “UPDATE”, “CANCEL” these will also trigger the appropriate Grid View Events.Ok let’s move on to Code behind what we have to do when user clicks Edit, Delete, Update and Cancel When we click on Edit the On Row Editing event will be fired.Then again we have to call that Bind Grid Data () method to bind data for the textboxes. You can leave a response, or trackback from your own site.So once after done with editing data, if we click update the following method will be triggered. Once we access the required fields in the code behind, we need to update the data in the database and show the updated data to the user. If the user clicks the Delete button On Row Deleting event will be fired. Going into that code we are trying to get the primary key of the employee table(Employee ID) by using Grid View Data Key Names and then This entry was posted on March 27, 2009 at am and is filed under ASP. “Delete” – Raises the Row Deleting and Row Deleted events. “Page” – Raises the Page Index Changing and Page Index Changed events.

You must have an account to comment. Please register or login here!