ghassan_aljabiri
Member
- Joined
- Mar 25, 2009
- Messages
- 23
- Programming Experience
- Beginner
Hello
if a DataGridView is bounded to a DATASET to display a table , a tableAdapter is Used to Add a Record to the table , how to refresh the contents of the dataGridview to display the table after addition?
this is my code
it adds but the datagridview is not refreshed
if a DataGridView is bounded to a DATASET to display a table , a tableAdapter is Used to Add a Record to the table , how to refresh the contents of the dataGridview to display the table after addition?
this is my code
VB.NET:
Dim nc As New NewCaseDialog
nc.ShowDialog()
If nc.DialogResult = Windows.Forms.DialogResult.OK Then
CasesTableAdapter1.Insert(nc.PhoneNumber, nc.StudentName, nc.Studentbranch, nc.Studentstage, nc.Studentlevel, nc.Studentclass, nc.CallerName, nc.Relation, nc.CaseTitle, nc.StudentSpecialCases, nc.CaseDetails, True, nc.CaseNotes)
CasesTableAdapter1.Update(GDBDataSet1.Cases)
End If
nc = Nothing
DataGridView1.Refresh()
it adds but the datagridview is not refreshed