Hi Guys!!!
I have attached a .jpg file in which error is displayed...
Actually, I made an edit button and in which edit click event i used
System.data.datarow
My other code lines are as under:-
dim intvalue as integer
intValue = MessageBox.Show("Do you want to save changes?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Information)
If (intValue = DialogResult.Yes) Then
Me.BindingContext(FollowUpData, "FollowUpsComments").EndCurrentEdit()
FollowUpAdapter.Update(FollowUpData)MsgBox("The record has been Updated", MsgBoxStyle.Information)
Me.BindingContext(FollowUpData, "FollowUpsComments").Position = Me.BindingContext(FollowUpData, "FollowUpsComments").Position
RecordLbl.Text = (((Me.BindingContext(FollowUpData, "FollowUpsComments").Position + 1).ToString + " Of ") & _
Me.BindingContext(FollowUpData, "FollowUpsComments").Count.ToString)
But now error is displayed with the message which i have attached with it...
so plz guide me in this regard how i can update/edit the previous records!!!!
Ok Bye
I have attached a .jpg file in which error is displayed...
Actually, I made an edit button and in which edit click event i used
System.data.datarow
My other code lines are as under:-
dim intvalue as integer
intValue = MessageBox.Show("Do you want to save changes?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Information)
If (intValue = DialogResult.Yes) Then
Me.BindingContext(FollowUpData, "FollowUpsComments").EndCurrentEdit()
FollowUpAdapter.Update(FollowUpData)MsgBox("The record has been Updated", MsgBoxStyle.Information)
Me.BindingContext(FollowUpData, "FollowUpsComments").Position = Me.BindingContext(FollowUpData, "FollowUpsComments").Position
RecordLbl.Text = (((Me.BindingContext(FollowUpData, "FollowUpsComments").Position + 1).ToString + " Of ") & _
Me.BindingContext(FollowUpData, "FollowUpsComments").Count.ToString)
But now error is displayed with the message which i have attached with it...
so plz guide me in this regard how i can update/edit the previous records!!!!
Ok Bye