Hi,
How can I add button in gridview in asp.net.
Thanks, in advance
How can I add button
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mittal Sejpal75 reputationPosted Aug 30, 2011, 8:58 PM EDT
for adding edit, update,delete buttons there are many ways
e.g if you want to add delete button
right click on gridview and select add new column
select button from field type
select command name as delete from list and provide the other details
and add.
the another way is add new column make it template field and in that item template add button from tool box etc...
hope it helps you
Prabhu RajaRank #861 · 2.6K reputationPosted Aug 30, 2011, 9:20 PM EDT
Find attachment.
use following asp.net code in your web page.
Thank you.
Satyapriya NayakRank #47 · 31.5K reputationPosted Aug 30, 2011, 9:38 PM EDT
Here is your code.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
Thanks
If this post helps you mark it as answer