/// <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(); }
/// <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(); }
/// <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(); }