Solved

Create a combo box in datagrid?

Posted on 2008-10-03
1
520 Views
Last Modified: 2012-05-05
I'd like to make one of the columns in a datagrid into a combobox which does a lookup so the user can pick values from one column from another table than the datagrid pulls from. Is this possible? If so, can you provide an example. TY.
0
Comment
Question by:jwagman
1 Comment
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 500 total points
ID: 22636196
Set the columnType to DataGridViewComboBoxColumn.  You can then populate the control like you would any other combobox by adding to the items collection

comboColumn.items.add
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with error in Query 2 31
Open a link in vb.net 2 16
SSIS On fail action 5 38
Please explain purpose of GZIP 4 37
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 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