Exemplo n.º 1
0
        /// <summary>
        /// Set Grid Data source
        /// </summary>
        /// <param name="addRow"></param>
        /// <param name="deleteRow"></param>
        private void BindBanks(bool addRow, bool deleteRow)
        {
            BankBLL objBankBLL = new BankBLL();

            grdBanks.DataSource = objBankBLL.GetAllBanks("");
            grdBanks.DataBind();
        }
Exemplo 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>
        private void SearchGrid()
        {
            string  bankName   = txtSearchBankName.Text.Trim();
            BankBLL objBankBLL = new BankBLL();

            grdBanks.DataSource = objBankBLL.GetAllBanks(bankName);
            grdBanks.DataBind();
        }
Exemplo n.º 3
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 btnSearch_Click(object sender, EventArgs e)
        {
            string  bankName   = txtSearchBankName.Text.Trim();
            BankBLL objBankBLL = new BankBLL();

            grdBanks.DataSource = objBankBLL.GetAllBanks(bankName);
            grdBanks.DataBind();
        }