protected void grdFeesCategory_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int feesCategoryID = Convert.ToInt32(grdFeesCategory.DataKeys[e.RowIndex].Value.ToString());

        if (feesCategoryID != 0)
        {
            TMSFeesCategoryMaster objFeesCategory = TMSFeesCategoryMaster.Get(feesCategoryID);
            objFeesCategory.IsDelete = true;
            objFeesCategory.Update();
        }

        grdFeesCategory.EditIndex = -1;
        BindFeesCategory();
    }
    protected void grdFeesCategory_UpdateRow(object sendedr, GridViewUpdateEventArgs e)
    {
        int         feesCategoryID = Convert.ToInt32(grdFeesCategory.DataKeys[e.RowIndex].Value.ToString());
        GridViewRow row            = grdFeesCategory.Rows[e.RowIndex] as GridViewRow;

        if (feesCategoryID != 0)
        {
            TMSFeesCategoryMaster objFeesCategory = TMSFeesCategoryMaster.Get(feesCategoryID);
            objFeesCategory.FeeCategoryName = (row.FindControl("txtFeeCategoryName") as TextBox).Text;
            objFeesCategory.Update();
        }

        grdFeesCategory.EditIndex = -1;
        BindFeesCategory();
    }
 public static void Update(TMSFeesCategoryMaster tMSFeesCategoryMaster, DbTransaction transaction)
 {
     tMSFeesCategoryMaster.Update(transaction);
 }
 public static void Update(TMSFeesCategoryMaster tMSFeesCategoryMaster)
 {
     tMSFeesCategoryMaster.Update();
 }
 public static void Update(TMSFeesCategoryMaster tMSFeesCategoryMaster, DbTransaction transaction)
 {
     tMSFeesCategoryMaster.Update(transaction);
 }
 public static void Update(TMSFeesCategoryMaster tMSFeesCategoryMaster)
 {
     tMSFeesCategoryMaster.Update();
 }