Ejemplo n.º 1
0
        /// <summary>
        /// Set Grid Data source
        /// </summary>
        /// <param name="addRow"></param>
        /// <param name="deleteRow"></param>
        private void BindBranches()
        {
            BranchBLL objBranchBLL = new BranchBLL();
            int       BankID       = Convert.ToInt32(ViewState["BANK_ID"]);

            grdBankBranchs.DataSource = objBranchBLL.GetAllBranches(BankID);
            grdBankBranchs.DataBind();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Search banks data from the database and set filterd data to Grid Data source
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnClearSearch_Click(object sender, EventArgs e)
        {
            ClearDetails();

            BranchBLL objBranchBLL = new BranchBLL();

            grdBankBranchs.DataSource = objBranchBLL.GetAllBranches(Convert.ToInt32(ViewState["BANK_ID"]));
            grdBankBranchs.DataBind();
        }