You must Sign In to post a response.
  • Category: .NET

    How to create a dynamic textbox column in asp.net gridview

    Hello developers,

    now i got struggle with this ,

    I want to create a dynamic textbox column using asp.net.
    and also that textbox columns values should be store into database.
    I have tried but i done only rows can't able to done column.
    So if know anyone of you will be appreciated.

    Thanks with.
    Paul.S
  • #763255

    Hi Paul,

    Refer below link this might be helpful to you "aspforums.net/Threads/201270/Dynamically-add-TextBox-control-to-GridView-Row-in-ASPNet/".


    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #763262
    Row ok Mr.naveen ,, I want to add column if it is whether gridview or panel is ok.
    Add textbox column dynamically in asp.net is possible? Mr.naveen if yes please giove me some idea to done it


    Thanks with
    Paul.S

  • #763265
    Hi Paul,

    Could you please elaborate your requirement clearly so that we can help you better.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #763266
    Oh am sorry naveen Sure,,
    Now am developing a website,

    1.I want to create a cost sheet for a product.
    2.The same product may have cost different.
    3.if user wish to add a column i will be available.
    4.So i need add a dynamic textbox column for each field right side the textbox.
    5.Also dynamic textbox columns values must stored the values into the database.

    Ex:
    field value1 (Addtextbox) value2....... valuen
    Product1 10 (Addtextbox) 20 30...n
    product2 10 (Addtextbox) 20 30 ...n
    .
    .
    .
    .Productn

    Save Cancel

    at the place named (Addtextbox) there i want to create a button likeb (Addtextbox). if i click the button new column will be generated 1 to n number.

    Then i click the save button dynamically text box column which i am added values should be stored into the db table.

    This is my requirement Mr.Naveen.
    i am trying to done it if you know any idea or link please guide me to i am done it.

    Thanks with
    Paul.S


Sign In to post your comments