I'm recently began getting a data exception whenever I try to create a new record. Basically I get a dataexception message that says that my primary key cannot be null whenver I click the button that supposed to add new records. Here is my code, Thanks for any help.
VB.NET:
Try
Me.BindingContext(Dsfr1, "Radios").EndCurrentEdit()
Me.BindingContext(Dsfr1, "Radios").AddNew()
'some non related code
Catch ex as DataException
Msgbox(ex.Message)
end try