/// <summary> /// Set Grid Data source /// </summary> /// <param name="addRow"></param> /// <param name="deleteRow"></param>e private void SearchBind() { string districtName = txtSearchDistrictName.Text.Trim(); DistrictBLL objDistrictBLL = new DistrictBLL(); grdDistrict.DataSource = objDistrictBLL.SearchDistrict(districtName); grdDistrict.DataBind(); }
/// <summary> /// To display details on click of button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSearch_Click(object sender, EventArgs e) { string districtName = txtSearchDistrictName.Text.Trim(); DistrictBLL objDistrictBLL = new DistrictBLL(); grdDistrict.DataSource = objDistrictBLL.SearchDistrict(districtName); grdDistrict.DataBind(); }