how to make delete column invisible while editing

Posted by Oswaldlily under ASP.NET on 2/14/2013 | Points: 10 | Views : 881 | Status : [Member] | Replies : 1
while editing no need delete button(whch in gridview last column)
<itemtemplate>
<asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/delete.jpg" CommandName="delete" ToolTip="Delete"
OnClientClick="return confirm('Are you sure u want to delete this entry');" />
</itemtemplate>

in gv_Rowediting
{
//how to make that delete column invisible..
}




Responses

Posted by: aswinialuri-19361 on: 2/14/2013 [Member] Starter | Points: 25

Up
0
Down
Hii


better to use visible="false" property
or else you will mention it in code behind like btndelete.visible=false;



Thanks


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response