We help IT Professionals succeed at work.
Get Started

how do set items in a combo box on a datagridview

javagair asked
Last Modified: 2014-08-14
I can create a datagrid porgrammatically but can't figure out how to tell the combo box what items to display.
in some cases depending on who is logged in there will be 4 items to select and for other people there will be 5.
I could put 2 datagrids on the form and hide one, but I'd sooner create the datagridview when needed and set the combo box items as required before it is visible.
I have looked at numerous examples but either I am being really dense or they do not show what I'm trying to do.
what i need to do is create a datagrid view with a several text columns and one that has a combo box where they have to select the answer.
can someone point me to an example that does this????

Watch Question
Senior .Net Consultant
Top Expert 2016
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE