private void TablasInventarios_Load(object sender, EventArgs e) { try { dataGridView1.DataSource = BD.GetInvetario(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }