Windows form combobox not showing selected value
Posted on 2014-04-18
I want to first say that I am new to Windows Application development. I only have experience with web app development and am really struggling with windows development. It baffles me that windows app doesn't have a formview control like web.
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.
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.
What am I doing wrong?