PC Review


Reply
Thread Tools Rate Thread

column does not allow nulls

 
 
=?Utf-8?B?bWFqaWRfYWhyYXJAbXNuLmNvbQ==?=
Guest
Posts: n/a
 
      9th Feb 2005
Hi
I am working on data entry Form. This Form has several textbox fields and
two combo Box. All the textbox and these ComboBoxes which have four items are
bind to the fields in the same table in SQL server. Please take look at the
following codes and tell me why I am getting “titlecolumn does not allow
nulls”. All the fields and comboboxes have a value.
Note: I am new to C#.Net. Please send me code sample when respond to this
question. Thanks very much. God bless


Load function

this.sqlDataAdapter1.Fill(this.DataSet1);
this.BindingContext[this.DataSet1, "Patfo"].AddNew();


Save button:

try
{
this.BindingContext[this.DataSet1, "Patfo"].EndCurrentEdit();
this.sqlDataAdapter1.Update(this.DataSet1);
}
catch(System.Exception Ex)
{
MessageBox.Show(Ex.Message);

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column does not allow nulls when saving John Microsoft ADO .NET 5 4th Mar 2007 04:54 AM
Column does not allow nulls when saving John Microsoft Dot NET Framework Forms 5 4th Mar 2007 04:54 AM
Primary Key, Identity Column - Problem adding row to strongly typed data table - "Column 'ShipmentID' does not allow nulls." stephanieschipper@yahoo.com Microsoft ADO .NET 0 12th Dec 2006 02:14 AM
Column PatientNo does not allow nulls - help =?Utf-8?B?Smlt?= Microsoft Dot NET 0 30th Dec 2005 04:09 PM
Expression column with nulls Earl Microsoft ADO .NET 8 20th Nov 2004 03:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:39 AM.