protected void DVPhysicalDetail_DataBound(object sender, EventArgs e) { if (((DetailsView)sender).CurrentMode == DetailsViewMode.Edit) { DataRowView row = (DataRowView)((DetailsView)sender).DataItem; RadioButtonList ddlBodyType = (RadioButtonList)((DetailsView)sender).FindControl("ddlBodyType"); RadioButtonList ddlComplextion = (RadioButtonList)((DetailsView)sender).FindControl("radioComplextion"); DataBindig.BindBody_Complextion(ddlBodyType, ddlComplextion); ddlBodyType.SelectedValue = row["Body_Type_Code"].ToString(); ddlComplextion.SelectedValue = row["Complexion_Id"].ToString(); } }
public void BindAllDDLS() { try { // DataBindig.BindCast(ddlcast); DataBindig.BindEducation(ddlEducation); DataBindig.BindFoodDrinkSmoke(rdoDiet, rdoDrink, rdoSmoke); DataBindig.BindReligion(ddlReligion); DataBindig.BindRashi(ddlRasi); DataBindig.BindStar(ddlStar); DataBindig.BindHeight(ddlHeight); DataBindig.BindBody_Complextion(ddlBodyType, ddlComplextion); DataBindig.BindState(ddlState); DataBindig.BindProfession(ddlProfession); DataBindig.BindTougne(ddlMtoungue); } catch (Exception ex) { throw; } }