DataGridViewComboBoxCell allows you to select a value for the respective DataGridView cell, from the list of values (available in popup displayed). The user can select item by clicking on an item or can use arrow keys to pick up from the available list or can type a value.
Questions tagged [datagridviewcomboboxcell]
196 questions
0
votes
1 answer
Using IndexOf in ComboBoxCell.Items collection throws an exception in case-insensitive comparisons
I didn't find any good solution for my issue. A bit of explanations. I have DataGridView with a few Columns. In the first Column, the cell shows the path to some file. Starting from the third Column, I have couple of ComboBoxCells.
In the DropDown…

Aleksandras K.
- 3
- 1
0
votes
2 answers
How do I fill a single ComboBoxCell from a database?
I use this code so I can fill my combobox.
MySqlDataAdapter sqlDa = new MySqlDataAdapter(query, bd);
DataTable dtbl = new DataTable();
sqlDa.Fill(dtbl);
box.MinimumWidth = 200;
box.ValueMember = idFromTable;
box.DisplayMember =…

Marto
- 51
- 5
0
votes
1 answer
Event triggered after writing in a combobox c#
I want to modify the Items of a DataGridViewComboBoxCell after changing the text of the DataGridViewComboBoxCell.
I'm casting the DataGridViewComboBoxCell to a ComboBox during the EditingControlShowing, so I can change the ComboBoxStyle to…

Decano
- 93
- 6
0
votes
0 answers
How to activate dropdown arrow in individual Windows Form DataGridViewComboBoxCell
I have a DataGridView in my Windows Form with 3 forms. The first 2 columns are uneditable, and the last column should be editable. Only some cells in Column #3 are set to combo boxes (they are of type DataGridViewComboBoxCell). Because not all cells…

fibonaccilinguine
- 101
- 1
- 2
- 11
0
votes
1 answer
DataGridViewComboBoxColumn with set collection of elements on a bound column doesn't allow user to drop down
I just need a standard day of the week combobox drop down in 7 columns in my DataGridView for my users to selected days of week , my initial solution was to edit the columns of the DataGridView and set the ColumnType to DataGridViewComboBoxColumn…

Lyle
- 419
- 1
- 6
- 26
0
votes
3 answers
DataGridViewComboboxCell display member not showing up
Goal
A datagridview of SteelTypes has a column that has been bound to a dataview (SteelThicknesses). I can select the data and set it correctly. However I cannot load the same information. My datagridview comboboxcell contains the value and editted…

Alex
- 4,821
- 16
- 65
- 106
0
votes
1 answer
ComboBox added programmatically to DataGridView doesn't open until after the cell loses focus and then is clicked on again
In a C# WinForms project I am populating a DGV from a DataTable. When a user clicks on the cell of one of the columns I need to populate a ComboBox and open it on one click.
However the CBO will only open when the cell in question loses focus (click…

marky
- 4,878
- 17
- 59
- 103
0
votes
1 answer
List of CheckBox in DataGridViewComboBoxColumn [Windows Form]
I am trying to show a dropdown composed of several CheckBoxes (a list of CheckBox) in a DataGridView. Specifically, the DataGridView provide a DataGridViewComboBoxColumn that allows to have a dropdown with several items. However, if you try to add…

BigMeister
- 361
- 2
- 11
0
votes
0 answers
Display value of foreign key table data in DataGridView when using datasource directly
How can I display the value of a foreign key into a data grid view instead of its ID value? I'm binding the data grid view directly to database using data-source ..
And at run time i m getting an error: for species type column.

Develop4Life
- 7,581
- 8
- 58
- 76
0
votes
1 answer
Binding Textblock text inside a combobox grid cell
I'm using a combobox cell inside a datagridview through datatemplate.
I bind an item source and set the DisplayMemberPath , SelectedValuePath and SelectedValue proprieties on the combobox inside
Once a item in the combobox is selected I would like…

Thyago Campos
- 5
- 3
0
votes
1 answer
Is it possible to populate a DataGridViewComboBoxCell with a custom ComboBox?
I'm currently writing a program which follows some specific design rules. For that I have created a custom ComboBox class which implements a border and a custom drop down button.
I also have a DataGridView in the main view which has one…

Lasse Samstrøm
- 1
- 1
0
votes
1 answer
DataGridViewComboBoxCell not updating list item
I'm trying to update values in a combobox in my datagridview. Sounds simple enough right.
I have several pre-existing rows added into my DGV where 2 columns are dropdown lists.
Code snippet as below, but the list is never updated visually with the…

megabytes
- 115
- 2
- 13
0
votes
1 answer
Can a bound DataGridView set display value of a DGVComboCell bound to another source
I have a DGV that is bound to a List.
Work is a class that contains a number of properties which includes a status property which is of type int. I would like to have that Status value in a DataGridViewComboBoxCell that maps to the appropriate…

Blair
- 93
- 1
- 13
0
votes
0 answers
Cannot set value of DataGridViewComboBoxColumn without displaying it first
I have a datagridview on a Winforms app where I add a DataGridViewComboBoxColumn. The datagridview is not visible (on a different tab) when the program starts and tries to set the DgvComboBox's value. It appears in my case that the DataGridView…

Joseph
- 93
- 1
- 11
0
votes
0 answers
How to add ComboBox to specific columns on Binding DataGridView?
I have a data grid view where on click event i have added combo box to particular columns. After selecting one of the value from combo box, i save it in db and it gets saved successfully. Now, when I load data grid view, which contains data from…