G
Guest
I have a Form using two DataTables:
Company: CompanyID*, CompanyName, ...
Department: CompanyID*, DeparmentID, DepartmentName, Address..
I Read the company table and put in in a ComboBox
In ComboBox_ValueChanged i Read the Departments for the selected Company
All the columns are displayed in TextBoxes that are databound via a
BindingSource.
I do a BindingSource.AddNew() and fill in the Textboxes.
the New datarow is not accepted into the datatable because
Department.CompanyID is NULL.
The companyID is not databound to a control becaue it has been used as a
select criteria when the table was fetched. Does anyone have a soultion on
how to assign a value
to an unbound column attached to a BindinmgSource?
Company: CompanyID*, CompanyName, ...
Department: CompanyID*, DeparmentID, DepartmentName, Address..
I Read the company table and put in in a ComboBox
In ComboBox_ValueChanged i Read the Departments for the selected Company
All the columns are displayed in TextBoxes that are databound via a
BindingSource.
I do a BindingSource.AddNew() and fill in the Textboxes.
the New datarow is not accepted into the datatable because
Department.CompanyID is NULL.
The companyID is not databound to a control becaue it has been used as a
select criteria when the table was fetched. Does anyone have a soultion on
how to assign a value
to an unbound column attached to a BindinmgSource?