protected void acbCurrency_SearchClick(object sender, EventArgs e) { try { objCurrencyLookup = new CurrencyLookupDal(); DataSet dsCurrency = objCurrencyLookup.GetCurrency(acbCurrency.SearchTextBox.Text); radgrdCurrency.DataSource = dsCurrency; radgrdCurrency.DataBind(); ViewState[vsCurrency] = dsCurrency; Reset(); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME); if (rethrow) { throw ex; } } }
/// <summary> /// Bind RoomType grid /// </summary> private void BindGrid() { objCurrencyLookup = new CurrencyLookupDal(); DataSet dsCurrency = objCurrencyLookup.GetCurrency(""); radgrdCurrency.DataSource = dsCurrency; radgrdCurrency.DataBind(); ViewState[vsCurrency] = dsCurrency; }