Solved

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

Posted on 2016-10-18
2
28 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 69

Expert Comment

by:Éric Moreau
ID: 41848567
0
 
LVL 69

Accepted Solution

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now