private void GetMRFAgingForOpenPosition(string SortExpressionAndDirection)
    {
        Rave.HR.BusinessLayer.MRF.MRFDetail MRFAgingForOpenPositionBL = new Rave.HR.BusinessLayer.MRF.MRFDetail();
        try
        {
            DataSet ds = new DataSet();
            ds = MRFAgingForOpenPositionBL.GetMRFAgingForOpenPosition(SortExpressionAndDirection);

            if (ds.Tables[0].Rows.Count != CommonConstants.ZERO)
            {
                btnExport.Visible = true;

                GVMRFAgingForOpenPositionReport.DataSource     = ds.Tables[0];
                Session["MRFAgingReportCountForOpenPositions"] = Convert.ToInt32(ds.Tables[0].Rows.Count);
                GVMRFAgingForOpenPositionReport.DataBind();
            }
            else
            {
                btnExport.Visible = false;
                ShowHeaderWhenEmptyGrid(ds);
            }
        }
        catch (RaveHRException ex)
        {
            throw ex;
        }
        catch (Exception ex)
        {
            RaveHRException objEx = new RaveHRException(ex.Message, ex, Sources.PresentationLayer, CLASS_NAME, "GetMRFAgingForOpenPosition", EventIDConstants.RAVE_HR_MRF_PRESENTATION_LAYER);
            LogErrorMessage(objEx);
        }
    }