Hello,
i have a RadGridView with a TableAdapter.
The TableAdapter is Filled with a View from a SQL Database.
In a 2. Form i modified the data with a Updatecommand.
How can i update the Data in the 1 Form/GridView??
Here my Code.
Private Sub BindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles BindingNavigatorSaveItem.Click
'Try
If ValidateChildren() = False Then
Exit Sub
End If
Me.ObjektdatenBindingSource.EndEdit()
Me.ObjektdatenTableAdapter.UpdateObjekt(txtObjektname.Text, rdlStrassen.Text, txtHausnummer.Text, txtPLZ.Text,
txtOrt.Text, System.DateTime.Now, CInt(rdlBegehungsintervall.SelectedValue), txtMeldernummer.Text,
picObjekt.ImageLocation, CInt(rdlobjekttyp.SelectedValue), CInt(rdlsachgebiet.SelectedValue),
rdpletzteFeuerbeschau.Value, rdpNaechsteFeuerbeschau.Value, CInt(lblObjektNr.Text))
objekte.V_objektdatenTableAdapter.Fill(objekte._Benutzer.v_objektdaten)
'Catch ex As Exception
'Console.WriteLine(ex.Message)
'End Try
End Sub
V_objektdatenTableAdapter is the Adapter in the 1. Form
Thanks Udo