Solved

I need help adding a combo box to a datagridview control in VB.net

Posted on 2016-10-18
2
48 Views
Last Modified: 2016-10-19
Hi,
I have a VB.Net application with a DataGridView control.
The Data Source for my DataGridView is tblProviderLanguage.

I want to do the following:
1. Add a combo box to my DataGridView control that will display the LanguageDesc field from the tblLkLanguage table.
NOTE: Tables tblProviderLanguage is linked to tblLkLanguage via the LkLanguageID field in both tables.
2. I want to hide the LkLanguageID field in the DataGridView control
3. When the form loads the DataGridView should display the LanguageDesc values bound from the tblProviderLanguage table (based on the LkLanguaeID field).  
   When the user selects a different value from the combo box.  That value should update table tblProvideLanguage via the LkLanguaID field.

I hope the above makes sense.
I have included an image below to hopefully make things a bit clearer.
Data Grid View image with language fields
Thank you very much in advance for your help.

mrotor
0
Comment
Question by:mainrotor
  • 2
2 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 41848567
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 41848573
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question