Answers for "how to access asp button of gridview"

C#
0

how to access asp button of gridview

protected void gvPayemenDetailNew_RowDataBound(object sender, 
GridViewRowEventArgs e)
{
foreach (GridViewRow row in gvPayemenDetailNew.Rows)
{
    if (row.RowType == DataControlRowType.DataRow)
    {
        Button btn = row.FindControl("btnGenNew") as Button;
        if (PayStatus == "Approved")
        {
            btn.Enabled = true;
        }
    }
}            
}
Posted by: Guest on May-12-2020

Code answers related to "how to access asp button of gridview"

C# Answers by Framework

Browse Popular Code Answers by Language