1
Answer

Retrieving the value of a field in a record

Hello, I have a combobox fill with TableAdapter and BindingSource. I want retrieve the field value of a record of
BindingSource.
example: Get the number of the Honorary in Honorary table knowing that the combobox filled with honorary name?

Answers (1)

0
Photo of Sujeet Suman
NA 5.5k 199.7k 9y
Abdelwaheb once use below code.
 
comboBox1.DataSource = dataTable;
comboBox1.DisplayMember = "honorary ";
comboBox1.ValueMember = "honorary "; 
 
comboBox1.SelectedValue
 
 
 
 
 If this is useful for you then please accept my Answer