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

snehal suryavanshiRank #6,924 · 253 reputationPosted Jul 5, 2018, 9:07 PM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Jun 27, 2018, 12:15 AM EDT
Yogesh GhorpadeRank #2,756 · 509 reputationPosted Jun 27, 2018, 1:18 AM EDT
Christopher Hankwembo15 reputationPosted Jun 27, 2018, 10:23 PM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Jun 27, 2018, 10:52 PM EDT
Christopher Hankwembo15 reputationPosted Jun 28, 2018, 12:36 AM EDT