Questions tagged [datagridviewcomboboxcolumn]
32 questions
11
votes
1 answer
DataGridViewComboBoxColumn - Have to click cell twice to display combo box
I am using a DataGridView, created using the designer with a few columns including a DataGridViewComboBoxColumn column.
It is slightly irritating that I have to click on each cell twice or even three times to display the drop-list:
If I click over…

Mr. Boy
- 60,845
- 93
- 320
- 589
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
2
votes
1 answer
DataGridViewComboBoxColumn Selected Value / Index
I am attempting to populate a DataGridViewComboBoxColumn with a list of strings then select one of them based upon their value on form load.
A simple task one would think, but I just can't get it right.
I am populating a DataGridViewComboBoxColumn…

tfcmad
- 418
- 1
- 6
- 20
2
votes
1 answer
How to fill a DataGridViewComboBoxColumn?
Sorry if this is something that should be obvious, but this is my first project using VB.NET, and some things are still beyond me.
I'm trying to setup a combobox inside a DataGridView but I keep getting
System.ArgumentException:…

des
- 67
- 1
- 8
2
votes
0 answers
C# WinForms DataGridView: drop down opened/closed event?
Is there a chance to know when the dropdown list of a DataGridViewComboBoxColumn is opened (and closed), regardless of the eventual value change?
I'm asking because I'd like to stop the underlying DataSource from updating, while the dropdown list is…

Alberto
- 23
- 3
2
votes
1 answer
c# DataGridViewComboBoxColumn selectedValue spread throughout the whole line
I'm stuck with the following problem:
i build a dataGridView with 7 DataGridViewComboBoxColumn, adding with the following code
foreach (string jour in Enum.GetNames(typeof(Jours)))
{
DataGridViewComboBoxColumn comboboxColumn =…

m2c
- 47
- 7
1
vote
1 answer
Why does SelectedIndexChanged is called with -1 on EditingControlShowing?
I created a custom DataGridViewComboBoxColumn "TPDataGridViewComboBoxColumn" which inherts from "DataGridViewComboBoxColumn",
public class TPDataGridViewComboBoxColumn : DataGridViewComboBoxColumn {
public TPDataGridViewComboBoxColumn() {
…

Anton Schrage
- 1,181
- 2
- 14
- 23
1
vote
1 answer
DataGridViewComboBoxColumn displaying "DataGridViewComboBoxColumn { Name=NewBox, Index=-1 }" text instead of ComboBox
I am making a simple windows forms application that imports the headers from a CSV file into a DataGridView and then adds a row with a combo box for each column. The ComboBox just has some string literals in it but when I run the program and load…

Tm1985
- 47
- 1
- 5
1
vote
0 answers
Show combobox item dynamically, depending on the record
I want to display a Comboxbox Item, depending on a data table.
for example:
1 = open
2 = close
....
The combobox content is created with the datatable:
string sqlStr = "select id, description from sdg.pa_status";
MySqlDataAdapter adapt = new…

apa13179
- 11
- 3
1
vote
1 answer
Replacing huge DataGridViewComboBoxColumn for performance
I have a dialog with a WinForms DataGridView that shows a user list. Each row contains an AD-User combobox (DataGridViewComboboxColumn) that can grow very large (10K+ items).
This DataGridView is used to link the users with their corresponding…

Langley
- 49
- 1
- 5
1
vote
1 answer
AdvancedDataGridView crashes on ComboBoxColumn filtering c# WinForm
I use the AdvancedDataGridView nuget and I face a problem I can't resolve...
The filtering is working on every columns except the DataGridViewComboBoxColumn that crashes when I'm filtering it.
My FilterStringChanged event code :
void…

Akiro
- 41
- 8
1
vote
2 answers
DataGridView Cell Formatting Error
DataGridView caught me again, I cannot figure out, why I get cell formatting error with following code. None of the solutions I found on the net wouldn't work/fit either. On load I set:
Dim dtAlign As New DataTable ' creating and filling a…

Oak_3260548
- 1,882
- 3
- 23
- 41
0
votes
0 answers
Error : system.argumentexception: datagridviewcomboboxCell value not Valid
I have a DGV(unbound) with many Columns and one of the Column is ComboBoxColumn. I want to add Items in it whenever user enters in the First column. This I am able to do on CellValueChange Event . i.e. if Cell Value of Index 1 changes then…

Kirti
- 1
- 3
0
votes
0 answers
Making DataGridViewComboBoxColumn values visible but not selectable
I have a combobox in Datagridview (DataGridViewComboBoxColumn) , I want Some values to be selectable by the user and the others ( "Pending" value) Visible but not selectable.
this issue is that these data are in the database, and the pending value…

Wael
- 411
- 1
- 6
- 19
0
votes
1 answer
Unexpected behaviour with DataGridViewComboBoxColumn Value/Display members binded to DataTable from an Access DB
I'm doing something to be supposedly straight and simple, yet I cannot make it work. I've an Access DB (64 bits), which is accessed by an OleDB connection. If I bind the values of a DataGridViewComboBoxColumn to a DataTable's fields ([int]id and…

Javier Gómez
- 75
- 1
- 7