gri开发者_高级运维dview:
<asp:CommandField ShowDeleteButton="false" />
How to change visibility programatically from Page_load method?
See the following question and answers for a couple of different options:
Conditionally hide CommandField or ButtonField in GridView
精彩评论