private void button2_Click(object sender, EventArgs e) { DBAccs db = new DBAccs(); db.OpenConnection(); db.Insert(textBox2.Text, textBox5.Text, textBox3.Text, textBox4.Text, textBox7.Text, textBox6.Text, textBox9.Text, textBox8.Text); MessageBox.Show("Uspesno je uneto!"); DataSet ds = new DataSet(); db.Adapter().Fill(ds); dataGridView1.DataSource = ds.Tables[0].DefaultView; db.CloseConnection(); }