protected void TxtSearch_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (TxtSearch.Text != string.Empty)
         {
             DataView Dv = new DataView(DtSearch);
             Dv.RowFilter            = "AccountName like '%" + TxtSearch.Text.Trim() + "%' ";
             GvAccOpenBal.DataSource = Dv.ToTable();
             GvAccOpenBal.DataBind();
         }
         else
         {
             GvAccOpenBal.DataSource = DtSearch;
             GvAccOpenBal.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
        public void FillGrid(string CompCode)
        {
            try
            {
                DataTable Dt = new DataTable();
                HfCompCode.Value = Session["COMP_CODE"].ToString();

                Dt = ACCT_BALLogicLayer.GetAllACCT_BALDetials(Convert.ToInt32(Session["USERCODE"].ToString()), Convert.ToInt32(Session["COMP_CODE"].ToString()));

                DataView Dv = new DataView(Dt);
                if (CompCode != string.Empty)
                {
                    Dv.RowFilter = "COMP_CODE=" + Session["COMP_CODE"].ToString();
                }
                GvAccOpenBal.DataSource = Dv.ToTable();
                GvAccOpenBal.DataBind();
                DtSearch = Dv.ToTable();
            }
            catch (Exception)
            {
                throw;
            }
        }