Bound datagridview not updating datasource Sex date usa

bound datagridview not updating datasource-85

I am having the same type of problem but I have a Drop Down List that is being bound to an Access Data Source.

I read the other threads but i didn`t understood and none of the codes worked. I have 1 form with a Data Grid View bounded to the table Produse and 3 texboxes and 1 Save button.

In the save button i`ve putted the code : Using con As New Sql Connection("Data Source=.\SQLEXPRESS; Attach Db Filename=H:\Projects\Windows Application1\Windows Application1\Database1.mdf; Integrated Security=True; Connect Timeout=30; User Instance=True") Try con.

Open() Try Using my Command As New Sql Command("INSERT INTO Produse (Nume , Pret , Cod) VALUES (@Nume, @Pret, @Cod)") my Command.

How my Form2 dataset,datagridview can show the latest data from the database Private Sub Form2_Load(By Val sender As System.