Questions tagged [datagridviewcombobox]
263 questions
0
votes
1 answer
Load data into DataGridViewComboBoxColumn VB.NET
Hi I have been banging my head against the wall all day trying to figure this out.
I have a DataGridView that is displaying the results of an SQL Query
The query returns 3 fields: GROUPNUM, GROUPNAME, COACHING
The group fields just have strings in…

slister
- 769
- 1
- 13
- 29
0
votes
1 answer
How to reproduce the behaviour of a real ComboBox in when using a DataGridViewComboBoxColumn?
Topic Introduction:
I recently noticed, that when you use the DataGridViewColumn-Class to
create a DataGridViewComboBoxColumn inside of a DataGridView this
"ComboBox" will behave differently from a familiar ComboBox behaviour
of a ComboBos…

Paul Weiland
- 727
- 10
- 24
0
votes
1 answer
Set Datasource of DataGridViewComboBoxCell in Virtual mode
When using virtual mode with DataGridView, I am subscribing to the CellValueNeeded event to get data on the fly. In the handler for that I have logic to differentiate between the columns, and if it is a DataGridViewComboBoxColumn, I want to give it…

eLymar
- 195
- 1
- 7
0
votes
4 answers
DataGridViewComboBoxCell value is not valid
Can someone explain to me how to add DataGridViewComboBoxCell to dataGridView?
Code is something like this:
foreach(....){
DataGridViewComboBoxCell cmb = new DataGridViewComboBoxCell();
//cmb.item.add(....
dataGridView.Rows.Add(new object[]…

JollyRoger
- 19
- 1
- 1
- 4
0
votes
0 answers
C# winforms datagridviewcomboboxcolumn fill with List
I unable to fill combobox column with list values.
ISONameColumn.DataSource = Presenter.GetISONameList();
Such code creates a lot of rows (each new for the each record in the list).
Dropdown in each record has all necessary values.
But i need to…

user3328720
- 85
- 1
- 3
- 11
0
votes
1 answer
How to display value in DataGridViewComboBoxColumn from database in C#
I am working on Windows Application.
I have a DataGridView in which I am displaying some data from table.
With the addition I have created 1 ComboBoxColumn in DataGridView like this:
DataGridViewComboBoxColumn cmbCol = new…

Keren Caelen
- 1,466
- 3
- 17
- 38
0
votes
2 answers
Datagridview comboBox not selecting on click/edit
I have a datagridview which has a combox column that contains two values. When a row's combobox value has been changed I'm updating the backend database with the change.
The core problem is the data only changes after you click on the drop down…

DavidFletcher
- 77
- 1
- 11
0
votes
0 answers
A single ComboBox column for two foreign keys to single table
I been completely baffled by an implementation here. I have a table that I'm showing to my user to edit through a grid. That table has a reference with another table through two foreign keys (pair of foreign keys). Now I have two Data properties:…

DoomerDGR8
- 4,840
- 6
- 43
- 91
0
votes
1 answer
Put data from text file and put ComboBox in DataGridView
I try to get data from text file what I,ve done. And next I want one of column as comboBox. I have no idea how to do that. Should I do it in opposite order? How to put ColumnComboBox in existing DataGridView?
Code to create column ComboBox:
private…

RadOsny
- 1
0
votes
1 answer
Updating a table from a Form DGV
I have a DGV which loads from a stored procedure in my application:
Dim conn As New SqlConnection(My.Resources.FCLRptConn)
Dim cmd As New SqlCommand("spFCLEditAgentAssignments", conn)
cmd.CommandType =…

ghost_king
- 870
- 2
- 12
- 24
0
votes
1 answer
how to assign hot key for datagridview combobox column?
i have grid view have combobox column ["column2"]
if (keyData == (Keys.F11))
{
for (int i = 0; i < dataGridView1.RowCount - 1; i++)
{
//here i want to change index automatically …
user3210084
0
votes
1 answer
How to bind DataTable to DataGridView that consists of a DatagridViewTextBoxColumn and a DataGridViewComboBoxColumn?
I want to ask you a question about my project.
I have a DataGridView in my C# project which has two columns: One is DataGridViewTextBoxColumn, the other is DataGridViewComboBoxColumn.
I have usernames and authorities columns in my DB. Usernames are…

ceskin
- 13
- 5
0
votes
0 answers
how to get selected item in combobox within datagridview in vb.net
I have a window form, in which there are a no of textboxes, other control and a datagrid view.
Datagrid view have 3 column. one colume is bind with combobox and two other with textboxes.
Data comes in combobox is bind from a table. Table name is…

user3214604
- 1
- 1
0
votes
2 answers
Binded ComboBox with DataSource
I'm trying to populate the datasource from my combobox with following code:
Here is the part where I create my binding
_columnsLayoutBinding.DataSource = _myColumnsLayout;
ColumnsLayoutDataGrid.DataSource = _columnsLayoutBinding;
…

Diego Garcia Vieira
- 93
- 1
- 2
- 10
0
votes
2 answers
Add DataGridViewComboBoxCell with different data sources to a DataGridView
I've already checked other posts but still could not fix my probem:
I have two forms:
One that creates clients ( can have multiple phones, addresses and cars)
A main form which should display each client info.
First of all, is it possible to have…

antonicelli
- 333
- 1
- 4
- 11