Solved

Create a combo box in datagrid?

Posted on 2008-10-03
1
519 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET MVC 2 31
Send SMS from VB via Sierra Wireless Modem 2 22
DataTables + iCheck + pagination Issue 2 23
Convert datetime to time string 10 21
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…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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