Posts

Showing posts from September, 2011

How to add a new row in GridView

<asp:gridview ID="Gridview1"  runat="server"  ShowFooter="true"         AutoGenerateColumns="false">         <Columns>         <asp:BoundField DataField="RowNumber" HeaderText="Row Number" />         <asp:TemplateField HeaderText="Header 1">             <ItemTemplate>                 <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>             </ItemTemplate>         </asp:TemplateField>         <asp:TemplateField HeaderText="Header 2">             <ItemTemplate>                 <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>             </ItemTemplate>         </asp:TemplateField>         <asp:TemplateField  HeaderText="Header 3">             <ItemTemplate>                 <asp:DropDownList ID="DropDownList1" r