Gridview Edit,Delete,Insert and Update in ASP .NET 4.5
This article is about Gridview,How to use Gridview?Here you will get know about use of Gridview Events i.e RowEditing , RowEditing , RowUpdating , RowDeleting , RowCommand , RowDataBound and RowCancelingEdit .For this I will perform Insert,Edit,Delete and Update on gridview. Gridview is ASP .NET control used to display data in tabular format. Gridview is widely used controls and very important control in Web Application. To perform various operations create database tables: Students and Department . Student student_id | name | roll_no | department_id | status Department department_id | name Now in aspx page add gridview control and edit it as follow: <asp:GridView ID= "grdStudent" runat= "server" OnRowCancelingEdit= "grdStudent_RowCancelingEdit" OnRowCommand= "grdStudent_RowCommand" OnRowEditing= "grdStudent_RowEditing" OnRowUpdating= "grdStudent_RowUpdating" OnRowDeleting= "grdStudent_RowDeleting