Use rowupdating

6854933580_2c8b688306_z

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.

Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: 1.

Software architect with over 10 years of proven experience in designing & developing n-tier and web based software applications, for Finance, Telecommunication, Manufacturing, Internet and other Commercial industries.

He believes that success depends on one's ability to integrate multiple technologies to solve a simple as well as complicated problem.

When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.

But as I noted in the comments in that method, some collections that should contain the columns (names, old values and new values) are always empty. And the Row Updated method is never even touched!!! NET Forums that I need to use a Data Source control.

The visitors to a web site can typically be divided into two groups: the users and the administrators.

Font-Names="Verdana" Font-Size="10" Data Key Names="Product ID" Auto Generate Columns="false" onrowcancelingedit="Grid View1_Row Canceling Edit" onrowediting="Grid View1_Row Editing" onrowupdating="Grid View1_Row Updating"In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free.

You'll be able to ask questions about coding or chat with the community and help others.

A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

This article will give you an overview of how to use an ASP.

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