dynamically insert textbox in gridview and insert the data of textbox in database
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
How to insert textboxes dynamically in gridview and than insert the textbox data in the database? Using VS2013 framework 4.5 ASP.NET C#
-
How to insert textboxes dynamically in gridview and than insert the textbox data in the database? Using VS2013 framework 4.5 ASP.NET C#
Add a textbox in a GridView control. Usually, you will attach a GridView to a database table. Let's assume, you have a column called XYZ in the table. You can add an editable textbox to the GridView as shown below.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"
ShowFooter="true"><Columns> <asp:TemplateField HeaderText="XYZ"> <ItemTemplate> <%#Eval("XYZ")%> </ItemTemplate> <FooterTemplate><asp:TextBox ID="tbXYZ" Width="200px" runat="server" /></FooterTemplate> </asp:TemplateField> </Columns>
</asp:GridView>
You will find the entire code here in in this article[^] Hope this helps.
Hi, This is arun