newbie - ComboBox not always displaying the correct text after BindingContext position change.

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Hello,

I've created a form and bound it to a dataset, and I can save the
information to the database.
I have a second table, a reference table, that I am now using on the form
via a ComboBox. I see the code descriptions in the ComboBox that pertain to
the related code stored in the table. I can choose a description from the
drop-down and the correct code is saved to the table.

I used the following code link to learn/accomplish my task:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=633

Everything works great except for this:

Sometimes the value in the ComboBox gets "stuck" on the current description
being displayed. When I change the position of the BindingContext, the
ComboBox apparently doesn't reload the description based on the new code
loaded in the field. I have a DataGrid displaying the underlying data, so I
know the ComboBox is not displaying the proper description for the

For my coding, and for my ComboBox settings, you can refer to the link
listed above, as my code closely resembles the sample coding. If you need
the source code, I can provide you with mine.

Am I missing some coding or settings for the ComboBox?

Thanks,

Eric
 
I found the issue.

I added both datagrids to the screen so I could see everything.

"ComboBoc, Databinding, Text" was screwing up the reference table
descriptions. Once I removed it, everything worked brilliantly.

Eric
 
Back
Top