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