Hi,
> Hi,
> I am not sure if the correct format on my Subject line but I am having
[quoted text clipped - 31 lines]
> fills with Customername and Productname but when use the BindingNavigator
> save button I want to save their ID number.
CustomerComboBox.DataSource = CustomersBindingSource
CustomerComboBox.DisplayMember = "CustomerName"
CustomerComboBox.ValueMember = "Id" ' PK
CustomerComboBox.DataBindings.Add("SelectedValue", OrderBindingSource,
"CustomerId") ' FK
You don't need any other bindings for the ComboBox (eg. don't bind Text),
you can set this up using the designer too. If you aren't using any
BindingSource's then replace with the DataTable's or DataViews you're
using.
Also see:
http://msdn2.microsoft.com/en-us/library/3h6ac01k.aspx
HTH,
Greetings
> I guess I jump to erly to ADO.NET 2.0 so I couldn't find any example how
> to
[quoted text clipped - 11 lines]
> Rgds,
> GC
Niyazi - 23 Sep 2006 08:34 GMT
Hi,
Thnak you very much. I try it before and it seems I get confuse about how to
bind the combobox using designer. I will try it one more time today and acept
this is the answer.
Thank you.
>Hi,
>
[quoted text clipped - 26 lines]
>> Rgds,
>> GC
Niyazi - 26 Sep 2006 12:44 GMT
Hi Bart,
It was perfect. Thank you very much for helping me out.
>Hi,
>
[quoted text clipped - 9 lines]
>>> Rgds,
>>> GC