How to make a Gridview Editable?

 Posted by vishalneeraj-24503 on 1/13/2014 | Category: ASP.NET Interview questions | Views: 618 | Points: 40
Answer:

With the help of EditItemTemplate,we can have the edit functionality in Gridview.We write EditItemTemplate inside
TemplateField as shown below:-

<asp:GridView ID="grid_project_details" runat="server" AllowPaging="True">

<Columns>
<asp:TemplateField>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response