Tuesday, November 15, 2022

Grid rowdatabound event Find control ASP.NET C# - Creating control - enable or disable control

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)

{

 Label lblDiscipline = ((Label)e.Row.FindControl("lblDiscipline"));



((DropDownList)e.Row.FindControl("ddlTitle")).Enabled = false;

}

No comments:

Post a Comment