Inserting empty datarows into a Grid

jaycswe

New Member
I am trying to create a gridview where User can insert rows. I am trying to have 10 empty rows in the grid with all the columns empty. Is it possible?User just need to enter into textboxes, so i will have to save all the 10 rows into the database! This is using c# asp.net..\[code\]<asp:TemplateField ItemStyle-Width="50"> <ItemTemplate> <asp:TextBox ID="txtSpots" runat="server" Text='<%#Eval("Spots")%>' Width="45px"> </asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-Width="180"> <ItemTemplate> <asp:TextBox ID="txtCompanyName" runat="server" Text='<%#Eval("CompanyName")%>'></asp:TextBox> </ItemTemplate> </asp:TemplateField>\[/code\]
 
Back
Top