TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Christopher Hankwembo
NA
17
2.3k
Setting up a primary Key on C# Window Form App
Jun 27 2018 2:23 AM
Hi Experts
I would like to set a primary on my form in C# because at the moment whenever I try to save data an error pops up as follows:
(1) StaffID is not Nullable , please check again?????
is there a way to sort out this????????
The data is properly binded to the data tables in SQL server 2016 using the wizard and is saved by using the built in Navigator binding source with a small modification below:
this.Validate();
this.customersBindingSource.EndEdit();
this.ordersBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.DataSet1);
Regards
Chris
Reply
Answers (
6
)
Encrypt Decrypt string
SQL server features