URGENT! VB.NET - Need To Populate A DataGridViewComboBoxColumn With Values From Another DataGridViewComboBoxColumn

I have a DataGridView which has four DataGridViewComboBox columns.  When the user selects the first DataGridViewComboBox column value, I want the second DataGridViewComboBox column to be filled based on the parameters sent  by the first DataGridComboBoxColumn. Likewise the same going from the second DataGridViewComboBox column to the third and then the third DataGridViewComboBox column to the fourth.

How should I get started?

Eric BurtonSr.ProgrammerAsked:
Who is Participating?
Eric BurtonConnect With a Mentor Sr.ProgrammerAuthor Commented:
Thanks for your input.  I decided to bind the column to a DataTable and use an OracleDataAdapter along with the DataGridView.CellEnter event to populate the DataGridViewComboBox.
Ess KayEntrapenuerCommented:
double click the first drop down

it should open a new function (on_changed_datagriddropdownsomething)

in that function, you will run code to populate the next drop down, based on


and so on

hope that helps
Jacques Bourgeois (James Burger)PresidentCommented:
DirectCast(dgv.Columns("NameOfDestinationColumn"), DataGridViewComboBoxColumn).DataSource = DirectCast(dgv.Columns("NameOfSourceColumn"), DataGridViewComboBoxColumn).DataSource
Jacques Bourgeois (James Burger)PresidentCommented:
The question was asked.

The question was answered.

And then he changes he tells us that finally he did not need our time.

This is a beautiful way of saying to "experts": do not answer my questions, you are losing your time.
Eric BurtonSr.ProgrammerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.