B
B
Boris Boyko2015-12-04 21:59:00
firebird
Boris Boyko, 2015-12-04 21:59:00

Is the id not transmitted?

3652fd6ee35047d2b6a5a9a1d4f31886.PNG
In combobox select I send the name of the country and its ID. When it comes to saving, it is not the id itself that is passed, but "COUNTRY_ID" (a word). PS: The name of the country in the combobox is displayed normally

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Gavrilenko, 2015-12-04
@Maddox

reader2["COUNTRY_ID"].ToString() not?

M
Melz, 2015-12-04
@melz

Make sure COUNTRY_ID is a property, not a field. For two-way it is better to take some kind of ObservableCollection thread.
The pressed box can be taken like this (not by name, if you rename it will work)
var cmb = sender as ComboBox;

E
eRKa, 2015-12-05
@kttotto

Too suspicion that COUNTRY_ID not property.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question