Copy Code code as follows:
<asp:templatefield headertext= "Action" showheader= "False" >
<ItemTemplate>
<asp:linkbutton id= "btn_zhiding" runat= "Server" Commandname= "tranfer" commandargument= ' <% #Eval ("ARTICLE_ID") %> ' text= ' <% #Eval ("betop") = = "Top"? "Cancel the top": "Top"%> ' oncommand= "Rowcommand" ></asp:LinkButton>
<asp:placeholder id= "PlaceHolder1" runat= "visible=" <% #Eval ("betop") = = "Top"%> ' >
<asp:imagebutton id= "Imgbtn_orderup" runat= "Server" Imageurl= "~/pic/up. jpg" commandname= "OrderUp"
Commandargument= ' <% #Eval ("article_id")%> ' oncommand= ' Rowcommand '/>
<asp:imagebutton id= "Imgbtn_orderdown" runat= "Server" Imageurl= "~/pic/down. jpg" commandname= "Orderdown"
Commandargument= ' <% #Eval ("article_id")%> ' oncommand= ' Rowcommand '/>
</asp:PlaceHolder>
</ItemTemplate>
<itemstyle horizontalalign= "Center"/>
</asp:TemplateField>
Dynamically displays the controls in each row of the GridView, depending on the value of the binding.
With <asp:placeholder runat= "server" visible= ' <% #Eval ("betop") = = "Top"%> ' >