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. Gridview is not displaying in browser

Gridview is not displaying in browser

Scheduled Pinned Locked Moved ASP.NET
help
4 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.
  • S Offline
    S Offline
    sudevsu
    wrote on last edited by
    #1

    Hello Experts, I wanted to display a Gridview with headers and button in the Gridview where users can enter the textfields in Gridview and click on button which adds new item in gridview. But my gridview is not displaying in browser. No matter what. Please help me in this.

    Your help is much appreciated. Thanks Happy Coding!

    S 1 Reply Last reply
    0
    • S sudevsu

      Hello Experts, I wanted to display a Gridview with headers and button in the Gridview where users can enter the textfields in Gridview and click on button which adds new item in gridview. But my gridview is not displaying in browser. No matter what. Please help me in this.

      Your help is much appreciated. Thanks Happy Coding!

      S Offline
      S Offline
      syed shanu
      wrote on last edited by
      #2

      What do you mean of your grid view is not displayed in browser.Can you paste your aspx page and your cs bind funciton and whare do you call your bind method.

      S 1 Reply Last reply
      0
      • S syed shanu

        What do you mean of your grid view is not displayed in browser.Can you paste your aspx page and your cs bind funciton and whare do you call your bind method.

        S Offline
        S Offline
        sudevsu
        wrote on last edited by
        #3

        What I mean is all the controls are displayed but not my grid, I want an empty grid tobe displayed and user can enter the data and click on add new row button which appends the rows. Here is the code

        <asp:Panel ID="Addpn" runat="server" CssClass="Panels">

                 <div id="divGrid">
        
                 <asp:GridView ID="gdvItems" runat="server" Visible="true" ShowFooter="true" AutoGenerateColumns="false">
                 <Columns >
                 <asp:BoundField DataField="ItemNo" HeaderText="ItemNo" />
                <asp:TemplateField HeaderText="TireSize">
                <ItemTemplate>
                    <asp:TextBox ID="txtTireSize" runat="server"></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="DOT">
                <ItemTemplate>
                    <asp:TextBox ID="txtDOT" runat="server"></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
        
                  <asp:TemplateField HeaderText="RemovalArea">
                <ItemTemplate>
                   <asp:TextBox ID="txtReAre" runat="server"></asp:TextBox>
                    <%--<asp:DropDownList ID="ddlRemovalArea" runat="server">
                    <asp:ListItem>-Select-</asp:ListItem>
                     <asp:ListItem>Bead</asp:ListItem>
                     <asp:ListItem>Tread</asp:ListItem>
                     <asp:ListItem>Sidewalk</asp:ListItem>
                     <asp:ListItem>Other</asp:ListItem>
                     <asp:ListItem>Tread life</asp:ListItem>
                     <asp:ListItem>Interior</asp:ListItem>
                    </asp:DropDownList>--%>
                </ItemTemplate>
            </asp:TemplateField>
                    <asp:TemplateField HeaderText="TirePosition">
                <ItemTemplate>
                 <asp:TextBox ID="txtTireposition" runat="server"></asp:TextBox>
                    <%-- <asp:DropDownList ID="ddlTirePosition" runat="server">
                      <asp:ListItem>-Select-</asp:ListItem>
                     <asp:Lis
        
        S 1 Reply Last reply
        0
        • S sudevsu

          What I mean is all the controls are displayed but not my grid, I want an empty grid tobe displayed and user can enter the data and click on add new row button which appends the rows. Here is the code

          <asp:Panel ID="Addpn" runat="server" CssClass="Panels">

                   <div id="divGrid">
          
                   <asp:GridView ID="gdvItems" runat="server" Visible="true" ShowFooter="true" AutoGenerateColumns="false">
                   <Columns >
                   <asp:BoundField DataField="ItemNo" HeaderText="ItemNo" />
                  <asp:TemplateField HeaderText="TireSize">
                  <ItemTemplate>
                      <asp:TextBox ID="txtTireSize" runat="server"></asp:TextBox>
                  </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="DOT">
                  <ItemTemplate>
                      <asp:TextBox ID="txtDOT" runat="server"></asp:TextBox>
                  </ItemTemplate>
              </asp:TemplateField>
          
                    <asp:TemplateField HeaderText="RemovalArea">
                  <ItemTemplate>
                     <asp:TextBox ID="txtReAre" runat="server"></asp:TextBox>
                      <%--<asp:DropDownList ID="ddlRemovalArea" runat="server">
                      <asp:ListItem>-Select-</asp:ListItem>
                       <asp:ListItem>Bead</asp:ListItem>
                       <asp:ListItem>Tread</asp:ListItem>
                       <asp:ListItem>Sidewalk</asp:ListItem>
                       <asp:ListItem>Other</asp:ListItem>
                       <asp:ListItem>Tread life</asp:ListItem>
                       <asp:ListItem>Interior</asp:ListItem>
                      </asp:DropDownList>--%>
                  </ItemTemplate>
              </asp:TemplateField>
                      <asp:TemplateField HeaderText="TirePosition">
                  <ItemTemplate>
                   <asp:TextBox ID="txtTireposition" runat="server"></asp:TextBox>
                      <%-- <asp:DropDownList ID="ddlTirePosition" runat="server">
                        <asp:ListItem>-Select-</asp:ListItem>
                       <asp:Lis
          
          S Offline
          S Offline
          sudevsu
          wrote on last edited by
          #4

          Is there something related to AutoEventwireUp=False? If so why should it not be false?

          Your help is much appreciated. Thanks Happy Coding!

          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