Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Combobox not showing selected value correctly

$
0
0

I have two tables.  The Requests table has a field called status; which maps to the ID field in my Status lookup table. My status table has ID and Status fields. These tables are linked in my dataset.

I am trying to populate the options on my combobox with the records in my Status table and also assign the selectedvalue of a combobox  to the status field in my Requests table.  

Under combobox tasks, I have 'Use Databound Items' checked,  

My datasource is my Status table, ID is the value and Status is the display
Under Seletedvalue, I have my status field selected from my RequestsBindingSource.

When I run the application the combbox shows all the records from the Status table but does not have the status field from the Requests table as the selectedvalue.

I have tried everything, Googled until exhaustion and watched several tutorials and I cannot figure out what I'm doing wrong. 


Stacie


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>