protected void grdDaily_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
dt = DelayworkReport.fillProjects();
ListItem lst = new ListItem("Select", "0");
DropDownList list = (DropDownList)e.Row.Cells[5].FindControl("ddlProject");
list.DataTextField = "ProjectABR";
list.DataValueField = "ProjectId";
list.DataSource = dt;
list.DataBind();
list.AutoPostBack = true;
list.Items.Insert(0, lst);
}
}
I have solved by myself the above question I asked thank u for help