TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ashwini ashwini
NA
3
554
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
Reply
Answers (
1
)
.NET CORE Console app publish issue(Self-contained)
How to pass mvc table data from view to controller