In Gridview i am using image button that Want to enable based on the value in the Field. My Partial Code is ..
<asp:ImageButton ID="btn_delete" **Enabled='<%# Eval("fld_status").ToString()=="1" ? "False" : "True" %>**' runat="server" ToolTip="Delete" OnClientClick="return confirm('Important Alert : Do you delete this item ?')" CommandName="del" CommandArgument='<%#Bind("fld_id") %>' />
via
RowDataBound(which i prefer):from aspx: