DateTimePicker and BindingSource Problem
-
Hi all, I have a problem with DateTimePicker and BindingSource. The BindingSource DataSource is a DataTable of 3 Columns (ID, Name, and Date). The "ID" Field is Primary key that of cource doesn't allow nulls. Both "ID" and "Name" fields are bound to TextBoxes, and "Date" Field is bound to a DateTimePicker control. Now when I'm trying to add a new record, I got an exception of: "Column 'ID' does not allow nulls." although it has a value. when I don't bind "Date" field, problem doesn't occur Can you help meeee?? :((
-
Hi all, I have a problem with DateTimePicker and BindingSource. The BindingSource DataSource is a DataTable of 3 Columns (ID, Name, and Date). The "ID" Field is Primary key that of cource doesn't allow nulls. Both "ID" and "Name" fields are bound to TextBoxes, and "Date" Field is bound to a DateTimePicker control. Now when I'm trying to add a new record, I got an exception of: "Column 'ID' does not allow nulls." although it has a value. when I don't bind "Date" field, problem doesn't occur Can you help meeee?? :((
-
Hi all, I have a problem with DateTimePicker and BindingSource. The BindingSource DataSource is a DataTable of 3 Columns (ID, Name, and Date). The "ID" Field is Primary key that of cource doesn't allow nulls. Both "ID" and "Name" fields are bound to TextBoxes, and "Date" Field is bound to a DateTimePicker control. Now when I'm trying to add a new record, I got an exception of: "Column 'ID' does not allow nulls." although it has a value. when I don't bind "Date" field, problem doesn't occur Can you help meeee?? :((