Questions tagged [datagridviewcombobox]
263 questions
4
votes
3 answers
DataGridView linked to DataTable with Combobox column based on enum
Having spent a lot of yesterday searching on this one I have to give up.
I have a DataGridView linked to a Datatable. One of the columns is an enum and I want that to show as a Combobox column.
I found this link Create drop down list options from…

RosieC
- 649
- 2
- 11
- 27
4
votes
5 answers
Why does DataGridViewComboBoxColumn display a ValueMember?
I have a small problem. DataGridViewComboBoxColumn displays a value from ValueMember and not from DisplayMember. The grid works fine and when I select something from this column I see the DisplayMember value, but when the focus gets lost, the grid…

wertyk
- 410
- 10
- 30
3
votes
1 answer
Datagridivew DataGridViewComboBoxColumn select value member
i have datagridview which has one combobox column. i populate combobox column. when i select any text from combobox column then i need to get the value when i read the data in for loop.
dgFilter is here datagridview
…

Thomas
- 33,544
- 126
- 357
- 626
3
votes
1 answer
Retrieve datarow behind datagridviewcombobox while databound
I have a databound DataGridView. One of its columns is DataGridViewComboBox. The DataGridViewComboBox is also databound. Everything is working just fine until I wish to retrieve the DataRow behind the DataGridViewComboBox selected item (not the…

Daniel
- 1,391
- 2
- 19
- 40
3
votes
2 answers
How to make a ComboBox of a DataGridViewComboBoxColumn accept user new items?
Using a DataGridViewComboBoxColumn, the goal is to make the ComboBoxes accept user's new items and also the possibility of choosing items that are already present.
I'm aware of using EditingControlShowing event of the DataGridView to change the…

didi
- 725
- 6
- 10
3
votes
2 answers
DataGridView ComboBox EditingControlShowing events
I have a basic WinForms app with d DataGridView (named dgvHardware) control on it, bound to this control is this code:
private void dgvHardware_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if…

Fuginator
- 229
- 3
- 5
- 15
3
votes
3 answers
How to make ComboBox column in DataGridView?
I have DataGridView with 2 columns:
Fname | Age
I need to show Age in ComboBox (that i can pick the age between 1 to 100).
When I press the button (save button for example) the Age value will be saved to the database. (I work with access)
Can i get…

Gali
- 14,511
- 28
- 80
- 105
3
votes
1 answer
Creating Dynamic DataGridViewComboBoxCells
So here is my situation. I have a DataGridView, which has two columns that I am trying to set up as DataGridViewComboBoxColumns called "Received" and "Backordered".
The point of these combo boxes is to create a drop down menu to select how many…

Skitzafreak
- 1,797
- 7
- 32
- 51
3
votes
1 answer
Selected items in DataGridViewComboBoxColumn always retrieve the first value
Assume the data I have are 'valuenumber1', 'valuenumber2', 'valuenumber3'.
I have a problem where when 'valuenumber2' or 'valuenumber3' is selected, the next row will be created but the previous row (having 'valuenumber2' or 'valuenumber3') will…

Megumi
- 53
- 7
3
votes
2 answers
How to change DataGridView cell color based on value of Combobox?
I have a datagridview as below:
I would like:
When the form load, if the Gender column's value is Male, the corresponding color cell of column Name will be White
When if changes the value of the column Gender: Male → Female, color cell of the…

MinhKiyo
- 191
- 3
- 15
3
votes
2 answers
existing column with Combobox in datagridview in vb.net
I am trying to put a drop down on the existing column of the DataGridView. I am filling the grid from excel source and to a specific column i need drop down.
`
Dim comboBoxColumn As DataGridViewComboBoxColumn = New…

Nim Nagpal
- 49
- 3
3
votes
2 answers
Is it possible to insert unbound column into a bound datagridview?
I have a datagridview, bound to data and running swell. The data in two columns are integers, but they have a meaning that I would like the form user to see instead.
Column 1 Column 2 Column 3 Column…

ZL1Corvette
- 415
- 1
- 6
- 24
3
votes
2 answers
Change DataGridViewColumn to DataGridViewComboBoxColumn in bound DataGridView
I have a DataGridView bound to a DataTable and I use a SQLiteDataAdapter to update one SQLite database. I'm trying to make one of the columns a DataGridViewComboBoxColumn, but despite I can put items on it and change its cell values I'm no longer…

Gonzalo Faus
- 464
- 5
- 13
3
votes
1 answer
Add item to DataGridViewComboBoxColumn
I have a DataGridView and I change one column to a DataGridViewComboBoxColumn. And I can edit the Items to put some data in it and it works.
But I want to put the Items in program, therefore, I try to use dataGridView1.Columns["drop_column"]. But it…

Dennys
- 587
- 2
- 13
- 33
3
votes
1 answer
Multi column combo box or DataGridCombo Box columns shrinking
I have a multi column combo box.When i use it for the first time then it works fine then
when i clear it and again enter data into it,all the columns shrink and only 1-2 letters are visible from each row. But I want to display the text such as all…

Ronophobia
- 349
- 3
- 16