ashwini ashwini

ashwini ashwini

  • 2.1k
  • 3
  • 373

how to add few textbox to columns in gridview button click?

Jun 15 2019 1:48 AM
Hello friends,
 
How can i add textbox to only specfied columns in gridview when button clicks inside the gridview.
 
i have tried this below code..
 
after clicking button data is saving but i need when button click specified textbox should add.
 
<Columns>
<asp:TemplateField HeaderText="">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/21-interface_-_plus_add-256.png" CommandName="AddNew" ToolTip="insertall" Width="20px" Height="20px" runat ="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/21-interface_-_plus_add-256.png" CommandName="AddNew" ToolTip="insertall" Width="20px" Height="20px" runat ="server" />
</EditItemTemplate>
<FooterTemplate>
<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/21-interface_-_plus_add-256.png" CommandName="AddNew" ToolTip="insertall" Width="20px" Height="20px" runat ="server" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Part Process Number">
<ItemTemplate>
<asp:Label Text='<%#Eval("Part_Process") %>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox19" runat="server" Text='<%#Eval("Part_Process") %>' ></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="TextBox19" runat="server" ></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Process Name/Operation Description">
<ItemTemplate>
<asp:Label Text='<%#Eval("Process_Name") %>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox20" runat="server" Text='<%#Eval("Process_Name") %>' ></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="TextBox20" runat="server" ></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
 
your kind support is really helping me..
thank you

Answers (1)