I add the data. Data is added, but the changes are not displayed in the DataGridView . Only displayed when the program is restarted.
DataRow newContactRow = fr1.zooparkDataSet.Tables["Animal"].NewRow(); newContactRow["Name"] = textBox1.Text; newContactRow["ID_Klass_zver"] = selectedItem1.ToString(); newContactRow["ID_Tip_zver"] = selectedItem2.ToString(); newContactRow["ID_Korm_zver"] = selectedItem3.ToString(); fr1.zooparkDataSet.Tables["Animal"].Rows.Add(newContactRow); fr1.animalTableAdapter.Update(fr1.zooparkDataSet.Animal); fr1.animalTableAdapter.Fill(fr1.zooparkDataSet.Animal); fr1.animalDataGridView.Refresh();