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

    How to Create Dynamic Text Box Horizontally in GridView and How to Bind the Records Horizontally

    Hi, Developers

    I want to know how to Create Dynamic Gridview TextBoxes Horizontally.(Top to Bottom)

    And also how to bind it Horizontally in GridView.(Top to Bottom)

    Anyone know please help me to i am done this task.

    Thanks With
  • #765214
    Try adding textbox and binding values to it in design time with ItemTemplate as follows:
    <asp:GridView ID="gvDemo" runat="server">
    <asp:TextBox runat="server" ID="txtDemo" Text='<%#Eval("ABC") %>'></asp:TextBox>
    Or you may find valuable information over here:
    Hope it helps.
    Shashikant Gurav

  • #765225
    Horizontally means ? do you want to feel them Row wise or do you want to add a column of Textboxes and bind data in it,
    Please elaborate.
    You can add dynamic columns in gridview (column wise), it is called as template column
    look at below link

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

Sign In to post your comments