private void RefreshItems(object sender, EventArgs e) { var biz = new CityBiz(); dataGridView.DataSource = biz.LoadItems(); dataGridView.Refresh(); }
public CityView(User user) { InitializeComponent(); currentUser = user; dataGridView.AutoGenerateColumns = false; var biz = new CityBiz(); dataGridView.DataSource = biz.LoadItems(); dataGridView.Refresh(); }