Dear All
I have created a database where there are 3 tables and created relation ship between them.
Alos I have connected database through dataset wizard and codes are as below still inserted
data is not getting save through one of the binding navigator.
Public Class Form1
Private Sub AcademicBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AcademicBindingNavigatorSaveItem.Click
Try
Me.Validate()
Me.AcademicBindingSource.EndEdit()
Me.StudentBindingSource.EndEdit()
Me.FeeDetailsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.FeesDataSet)
MsgBox("Update Successful")
Catch ex As Exception
MsgBox("Update Fail")
End Try
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'FeesDataSet.FeeDetails' table. You can move, or remove it, as needed.
Me.FeeDetailsTableAdapter.Fill(Me.FeesDataSet.FeeDetails)
'TODO: This line of code loads data into the 'FeesDataSet.Student' table. You can move, or remove it, as needed.
Me.StudentTableAdapter.Fill(Me.FeesDataSet.Student)
'TODO: This line of code loads data into the 'FeesDataSet.Academic' table. You can move, or remove it, as needed.
Me.AcademicTableAdapter.Fill(Me.FeesDataSet.Academic)
End Sub
Private Sub Fee_Collection_DateDateTimePicker_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Fee_Collection_DateDateTimePicker.KeyDown
Fee_Collection_DateDateTimePicker.Text = Now
End Sub
End ClassImage of application is as below
pl let me know what to do.