private void ShowGridBtn_Click(object sender, RoutedEventArgs e) { InitIndicator(CurrentStocks); var gridView = new StockGridView(CurrentStocks); FillRssInfo(CurrentStockSymbol); gridView.Show(); }
public void LoadStocks() { string size = SizeDropDownList.SelectedItem.ToString(); string code = txtCode.Text; int id = Convert.ToInt32(CategoriesDropDownList.SelectedValue); StockGridView.DataSource = _StocksInRepository.GetAllStocks(size, code, id); StockGridView.DataBind(); }