Net gridview onrowupdating


19-Oct-2017 02:26

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

In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.

Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.

In the above tutorial I tried to give you one of the easiest solutions and I hope you can go explore Grid View control editing further after learning the basics from this tutorial.

By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.

Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.

My Grid View has a column that is contains an "Options" column.

This column includes the traditional Command Field options (edit, delete, etc.).

These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.

net gridview onrowupdating-1

sabrina bryan and mark balas dating

I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.

Introduction The Grid View control displays the values of a data source in a table.



On October 30, 2009, the Foo Fighters played their first internet-only live concert from their studio space Studio 606 in Los Angeles.… continue reading »


Read more

Muhammad Ali (Cassius Marcellus Clay, Jr., January 17, 1942 – June 3, 2016) was an American professional boxer, generally considered the greatest heavyweight in the history of the sport.… continue reading »


Read more