public Form7() { repo = new MyRepo(); InitializeComponent(); dataGridView1.DataSource = repo.GetAllInfo(); }