private void Form2_Load(object sender, EventArgs e) { DataTable dt = c.Select(); dataGridViewGroups.DataSource = dt; }