<asp:TemplateField HeaderText="İşlem Gördü"> <ItemTemplate> <asp:CheckBox ID="CheckBox4" runat="server" Checked='<%# Eval("satisfied").ToString() == "1" ? true : false %>' /> </ItemTemplate> <ItemStyle Width="20px" /> </asp:TemplateField> <asp:ButtonField ButtonType="Image" CommandName="Edit" ImageUrl="~/images/icons/hammer_screwdriver.png" Text="Edit" HeaderText="Düzelt" />
protected void grd_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { CheckBox chk = (CheckBox)e.Row.FindControl("checkboxId"); Button btn = (Button)e.Row.FindControl("yourid"); //u will get id if(chk.checked == true) { btnField.Enabled = false; //your code here. } } }
<asp:ButtonField ButtonType="Image" CommandName="Edit" ImageUrl="~/images/icons/hammer_screwdriver.png" Text="Edit" HeaderText="Düzelt" Visible="false" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)