public void bind_grid()
    {
        ReturnClass.ReturnDataTable dt = new ReturnClass.ReturnDataTable();

        Notice_Entry ne = new Notice_Entry();

        try
        {
            ne.pending = "P";
            //ne.district_id = Session["Dist_Code"].ToString();
            dt = dl.pending_for_approval(ne);
            //if (dt.table.Rows.Count > 0)
            //{
            //    GridView1.DataSource = dt.table;
            //    GridView1.DataBind();
            //}
            //else
            //{
            //    btnapprove.Visible = false;
            //           }

            if (dt.table.Rows.Count > 0)
            {
                GridView1.DataSource = dt.table;
                GridView1.DataBind();
                double c   = Convert.ToInt32(dt.table.Rows.Count.ToString());
                double cal = Math.Ceiling(c / 30);
                if (cal == 0)
                {
                    cal = 1;
                }

                lblTotalBoilers.Text = "Total Records : " + dt.table.Rows.Count.ToString() + " (Page : 1 to " + cal + ")";
            }
            else
            {
                btnapprove.Visible   = false;
                GridView1.DataSource = dt.table;
                GridView1.DataBind();
                lblTotalBoilers.Text = "Total Records : " + dt.table.Rows.Count.ToString();
            }
        }
        catch (Exception ex)
        {
            Gen_Error_Rpt.Write_Error("admin_NewsEdit_List_bind_grid()", ex);
            Utilities.MessageBoxShow(ex.Message);
        }
    }