This is the code for create editable grid with view and edit functionality
Basic Idea of this article to how to user the DataView functionally specially in Edit mode
Using the code
In this code you need to specify below code in aspx page, where you mainly use ItemTemplate which is for View purpose and EditItemTemplate which is for edit purpose..as Template
you can also Commnad="Update" and find its event as given below code and same case for Delete also.
<asp:TextBox ID="txtID" runat="server" Text='<%# Bind("DetailsId") %>'></asp:TextBox>
<asp:Label ID="lblID" runat="server" Text='<%# Bind("DetailsId")%>'>
Points of Interest
This code is mainly use for initial level understanding development for Dataview.