[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Combo Box in Datagrid (vb.net)

Posted on 2007-11-21
8
Medium Priority
?
2,102 Views
Last Modified: 2013-11-26
I am using a sql statement to fill a dataset which I use as a data source for a grid.  There are 2 columns, seq_no, product.  The product column I would like to be a combobox which has the selected value property assigned by what is returned from the query. the combobox values list I will populate another way.  If i use something like:
dim dt as data table
dim ds as dataset
 ds1 = FillGrid1()
        dt = ds1.Tables(0)
        With DataGrid1
            .DataSource = dt
        End With
(where FillGrid1 is a function that passes a dataset filled with the results of the query)

How do I turn the "product"  column into a combobox?
   
0
Comment
Question by:garyinmiami2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1500 total points
ID: 20328794
0
 

Author Comment

by:garyinmiami2003
ID: 20329049
emoreau:

Thank you for the input.  There are 46 pages in that FAQ.  It is informative and it may lead to the solution, some day.  I have to read it, set up a little test and when I get it right copy it into my program.  That is fair but not what I was hoping for.  What I would like to have is something I can relate to the specific problem I put in my question, a code snippet I can plug in test, tweek a little but not research it too much.
I know you have the knowledge but I need it applied to my problem unless you have a faq with examples included.
 
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 20329746
but the link I have provided should have bring you directly to "5.9 How can I put a combobox in a column of a datagrid?"
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 5

Expert Comment

by:Netminder
ID: 20350682
Grade changed by asker request.

Netminder
Site Admin
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 20350947
I originally got a C. Where can I see what is the grade now?
0
 
LVL 5

Expert Comment

by:Netminder
ID: 20351396
We always increase by one level. There isn't any place you can actually see it though; I can send you a screen shot if you like.

N
0
 

Author Comment

by:garyinmiami2003
ID: 20352301
emoreau:

The C was a mistake on my part.  The B was what I intended.  I am truly sorry if that offended you as I have gotten numerous questions answered in the past.  Some by you.  It is not my mission in life to insult anyone and especially not you.  If you feel that this is what has happened, let me know and I will see what I can do about it.  In this instance, I was hoping for a code snippet or something that I did not have to study a faq to get.  That was lazy on my part and I did not spend much time to compose  the question to offer a better chance to get what I was looking for.  



 
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 20352443
>>If you feel that this is what has happened

I do not feel insulted. I just wanted to know what was the new grade since it is not visible on this question.

>>I was hoping for a code snippet

I think the link provide a better answer then a code snippet. It has a complete sample (in both VB and C#)
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

650 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