protected void grdFeesSetup_UpdateRow(object sendedr, GridViewUpdateEventArgs e) { int feeHeadID = Convert.ToInt32(grdFeesSetup.DataKeys[e.RowIndex].Value.ToString()); GridViewRow row = grdFeesSetup.Rows[e.RowIndex] as GridViewRow; if (feeHeadID != 0) { TMSFeesSetup objFeesSetup = new TMSFeesSetup(); objFeesSetup.FeesAmount = Convert.ToDecimal(((TextBox)grdFeesSetup.FooterRow.FindControl("txtFeesAmount")).Text); objFeesSetup.SchoolCategoryID = Convert.ToInt32(((DropDownList)grdFeesSetup.FooterRow.FindControl("drpdrpSchoolCategory")).SelectedValue); objFeesSetup.SchoolSubcategoryID = Convert.ToInt32(((DropDownList)grdFeesSetup.FooterRow.FindControl("drpSchoolSubCategoryName")).SelectedValue); objFeesSetup.FeesCategoryID = Convert.ToInt32(((DropDownList)grdFeesSetup.FooterRow.FindControl("drpFeeCategoryName")).SelectedValue); objFeesSetup.FeesHeadID = Convert.ToInt32(((DropDownList)grdFeesSetup.FooterRow.FindControl("drpFeeHeadName")).SelectedValue); objFeesSetup.FeesTermID = Convert.ToInt32(((DropDownList)grdFeesSetup.FooterRow.FindControl("drpFeeTerm")).SelectedValue); objFeesSetup.Update(); } grdFeesSetup.EditIndex = -1; BindFeesSetup(); }
public static void Update(TMSFeesSetup tMSFeesSetup, DbTransaction transaction) { tMSFeesSetup.Update(transaction); }
public static void Update(TMSFeesSetup tMSFeesSetup) { tMSFeesSetup.Update(); }