Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. dynamically insert textbox in gridview and insert the data of textbox in database

dynamically insert textbox in gridview and insert the data of textbox in database

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasetutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Praveen Kandari
    wrote on last edited by
    #1

    How to insert textboxes dynamically in gridview and than insert the textbox data in the database? Using VS2013 framework 4.5 ASP.NET C#

    A 1 Reply Last reply
    0
    • P Praveen Kandari

      How to insert textboxes dynamically in gridview and than insert the textbox data in the database? Using VS2013 framework 4.5 ASP.NET C#

      A Offline
      A Offline
      Arun Banik
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups