By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,868 Members | 1,974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,868 IT Pros & Developers. It's quick & easy.

To Show the Empty GridView in runtime

P: 1
I have a grid view containing item template and need to display the empty grid view initially but my grid view is not visible .the code is below and am using this for my task sheet application
<asp:GridView ID="GVTaskSheet" AutoGenerateColumns="false" runat="server"> <Columns> <asp:TemplateField HeaderText="Project" SortExpression="Project"> <ItemTemplate> <asp:TextBox ID="txtBoxProject" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="CR\Task\Enhancement" SortExpression="Project"> <ItemTemplate> <asp:TextBox ID="txtBoxTask" Width="300px" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="SubTask" SortExpression="Project"> <ItemTemplate> <asp:TextBox ID="txtBoxSubTask" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Mon" SortExpression="Mon"> <ItemTemplate> <asp:TextBox ID="txtBoxMon" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Tue" SortExpression="Tue"> <ItemTemplate> <asp:TextBox ID="txtBoxTue" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Wed" SortExpression="Wed"> <ItemTemplate> <asp:TextBox ID="txtBoxWed" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Thu" SortExpression="Thu"> <ItemTemplate> <asp:TextBox ID="txtBoxThu" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Fri" SortExpression="Fri"> <ItemTemplate> <asp:TextBox ID="txtBoxFri" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Sat" SortExpression="Sat"> <ItemTemplate> <asp:TextBox ID="txtBoxSat" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Sun" SortExpression="Sun"> <ItemTemplate> <asp:TextBox ID="txtBoxSun" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Total" SortExpression="Total"> <ItemTemplate> <asp:TextBox ID="txtBoxTotal" runat="server"></asp:TextBox> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
Dec 5 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.