troubleshooting Question

populate combobox in a datagridview in

Avatar of ljhodgett
ljhodgett asked on
.NET ProgrammingVisual Basic.NET
7 Comments1 Solution12560 ViewsLast Modified:
Hi Experts,

I'm sorry I thought I had this sorted but when I came to put all the snipets of code together that I received from other questions it went badly wrong so I really need to go from scratch to get my head round this as I'm pretty new to and would like to do some more advanced coding. Well advanced for me at the moment.

My question is that I have a datagridview with a column called description which is set as a text box and a combobox called quantity.

The quantity combobox is populated from a variable depending on the quanity set. Lets say I want the grid to look something like this: -

row 1: -

Text box says: "Trousers" combobox has the data:       "1"

row 2: -

Text box says: "Shirt" combobox has the data:             "1"

row 3: -

Text box says: "Shirt" combobox has the data:             "1"

Once the datagrid view is populated it will need to show the last number of each combobox as default in the combobox. ie,

row 1 : 6
row 2 : 3
row 3 : 2

How would I code this please. I'm sure when I get the jist of how they work it just a case of getting a complete example.

I would apprectaite your help.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros