Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 27 Apr 2005 21:21 GMT
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
Eric - 27 Apr 2005 21:41 GMT
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

> Hello,
>
[quoted text clipped - 26 lines]
>
> Eric

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.