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.
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.
In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.
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.
In this article I will explain how to edit master-detail form using Grid View and Details View control in ASP.
NET Download source code Introduction In one of my previous article I explained how to Master-Detail form using Grid View and Details View in ASP. In this ariticle I will explain how to edit a master/detail form in ASP.
Table Name- Employees Fields- Emp Id, Emp Name, Designation Take Grid View control on page and set the ID property to dg Employees.
Add three Template Field Column for Employee Name, Designation, & Delete Button.
By using the Grid View Row object we can find the reference of any control in the row in which user is editing the data.