Posts : 404 Join date : 15/06/2011 Age : 42 Location : Caloocan Philippines
Subject: code snippet rowdatabound binding a control Thu Jul 28, 2011 7:55 pm
Code:
protected void gv_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow && (e.Row.RowState & DataControlRowState.Edit) == DataControlRowState.Edit) { // Here you will get the Control you need like: DropDownList dl = (DropDownList)e.Row.FindControl("ddlPBXTypeNS"); } }