Hi all.
I am developing an window application in VS 2005 Pro that contains a ComboBox with the data source was loaded from a table in database. The table has two columns (CustID and CustName, which CustID is the primary key)
I want the ComboBox display the CustName but the value insert into the database is the CustID. So I set in the ComboBox task menu the Data Source is CustNameBindingSource (this control was auto generated when configure the "Add new data source Wizard"), Display Member is CustName, Value Member is CustID, Selected Value is CustNameBindingSource - CustID.
When I run the application, when the cursor move to the ComboBox, I selected the value (Customer Name)in there and the program just freeze. But when I edit the value in the ComboBox with the CustID, it seems be ok.
I dont know why it happened
So hope all your help
Thanks so much

ComboBox and Data Binding Problems
praveen kumar sharma
This probably has more to do with the fact that maybe the bindingsource has a null and since there is no valuemember of null its having a fit. In 1.1 the combobox would sometimes freeze up because of null bound record. The whole app would freeze and have to be forced quite for the checkbox contorl.
Check to see if there is a valid value in the binding source and that the custid exists in the datasource of the combobox.
Happy Holidays
Joe
Safa2535
after searching, checking everything, the thing i want is to have a look up table control.
so i follow the tutorial in
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_mclictl/html/622fce80-879d-44be-abbf-8350ec22ca2b.htm
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmclictl/html/4ce35f12-1f4e-4317-92d1-af8686a8cfaa.htm
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_raddata/html/a79cbbd9-4c08-4dbb-b804-db9bc2c733e3.htm
and i still have that problem.
After all, I find the cause is the Text Property under the DataBinding Property ."Text" property was automatical set to the binding source.
So I set this to none and the problems just gone.
Hope this help the others