Hi I'm trying to enable on the Dropdown list for the Gridview row I am editing but the DDL is being enable on all rows. Here's my code so far:
protected void gvFabricSubTypes_RowDataBound(object sender, GridViewRowEventArgs e)
{
//Set DDL and CB values for each row
if ( e.Row.RowType == DataControlRowType.DataRow )
{
DropDownList ddl = (DropDownList)e.Row.FindControl("ddlTempCorrectionFactorDescription");
ddl.DataSource = DAL.GetTempCorrectionFactorDescriptionDD();
ddl.DataValueField = "TempCorrectionFactorID";
ddl.DataTextField = "TempCorrectionFactorDescription";
ddl.DataBind();
ddl.Items.Insert(0, "Please select");
//To apply back color to row on mouse over, on mouse out and not in edit mode
if (gvFabricSubTypes.EditIndex != -1)
{
e.Row.Attributes.Remove("onmouseover");
//DropDownList ddl = (DropDownList)e.Row.FindControl("dd ...
Go to the complete details ...