protected void BtnExportDetail_Click(object sender, EventArgs e)
    {
        if (ViewState["Summary"] != null)
        {
            DataTable DtGrd    = (DataTable)ViewState["Summary"];
            string    PURINVNO = string.Empty;
            if (DtGrd.Rows.Count > 0)
            {
                GridView GridExp = new GridView();


                GridExp.DataSource = DtGrd;
                GridExp.DataBind();
                Obj_Comm.Export("ListOfProperty.xls", GridExp);
            }
            else
            {
                Obj_Comm.ShowPopUpMsg("No Data Found To Export..!", this.Page);
                GrdProjectDtls.DataSource = null;
                GrdProjectDtls.DataBind();
                GrdProjectReport.DataSource = null;
                GrdProjectReport.DataBind();
            }
        }
        else
        {
            Obj_Comm.ShowPopUpMsg("No Data Found To Export..!", this.Page);
            SetInitialRow();
        }
    }
    public void ReportGridForProperty(int PropID)
    {
        try
        {
            GrdProjectDtls.Visible = true;

            DS = Obj_Property.FillCheckReportGridForProperty(PropID, out StrError);

            if (DS.Tables.Count > 0)
            {
                if (DS.Tables[0].Rows.Count > 0)
                {
                    GrdProjectDtls.DataSource = DS.Tables[0];
                    GrdProjectDtls.DataBind();
                    ViewState["Summary"] = DS.Tables[0];
                    if (!FlagPrint)
                    {
                        BtnPrint.Visible        = true;
                        BtnExportDetail.Visible = true;
                    }
                }
                else
                {
                    GrdProjectDtls.DataSource = null;
                    GrdProjectDtls.DataBind();
                    ViewState["Summary"] = null;
                }
            }
            GrdProjectReport.Visible = false;
        }
        catch (Exception ex)
        {
            Obj_Comm.ShowPopUpMsg(ex.Message, this.Page);
        }
    }