Questions tagged [datagridviewcombobox]
263 questions
1
vote
2 answers
Adding ComboBox to Datagridview
I found a way to add a combobox to DataGridview (Winform) cell, but I have not found an event like ItemDataBound of DataGridView to set a value to comboBox. And do not know how to set a selected value of a comboBox to DataItem property of a current…

Bac Clunky
- 353
- 3
- 6
- 18
1
vote
2 answers
Changing double clicking activation on Combo box cell to single click?
I have a setup in my code where there is a datagridview. For each row I have a combo box cell that I have a separate combo box cell since I want a different selection of items for each cell.
Problem : The cell only drops down when the arrow is…

Kat
- 2,460
- 2
- 36
- 70
1
vote
0 answers
Telerik GridViewComboBoxColumn can't differentate between ss and ß?
I'm using a GridViewComboBoxColumn with AutoCompleteMode = AutoCompleteMode.SuggestAppend.
Recently I found out that the data in the dropdownbox of the autocompletebox has a problem (as has the editor).
The german double s and sharp s (aka ß) are…

Thomas
- 2,886
- 3
- 34
- 78
1
vote
1 answer
Changing selected item in GridViewComboboxColumn (Telerik, winforms)
I'm wondering how you can set the selected element of a gridviewcomboboxcolumn.
As a bit of a foreword: I'm using the column with autocomplete mode in order to
have autocomplete functionality, but I also want to add new elements to the list.
It…

Thomas
- 2,886
- 3
- 34
- 78
1
vote
2 answers
How To Add A DataGridViewComboBoxCell to a Bound DataGridView DataSource (Programatically)
Goal
I want to have a DataGridViewComboBoxCell after setting my DataGridView's DataSource with a DataView.
Current Situation
I have a DataTable that is populated with BillDetails as the user navigates through his Bills.
I created a DataView and…

Alex
- 4,821
- 16
- 65
- 106
1
vote
1 answer
How to create a dataGridViewComboBoxCell and add it to dataGrid
I am trying to create a WPF application. In my application I want to add a ComboboxCell in 3 row of my dataGrid.
I can do this in C# window application by using the following code:
public partial class Form1 : Form
{
public Form1()
{
…

Jake
- 1,560
- 2
- 17
- 25
1
vote
1 answer
DataGridViewComboBox error vb.net
I'm quite lost in this error I'm getting. I have a Combobox that I added to my dgv, I am able to fill my combo-box with the values I want yet I keep getting an exception when I make a selection change on the dgv itself. Every time I choose a value…

Rahul Kishore
- 380
- 1
- 8
- 19
1
vote
1 answer
Bound DataGridView with multiple sources
i have been strugeling with this for some time now and its driving me crazy. This is the situation:
I have a bounded DataGridView i designed this with the visual studio designer. All the information shows accordingly.
in my DataGridView i have 2…

Chancho
- 1,930
- 2
- 15
- 20
1
vote
0 answers
Un-selecting the items in a DataGridViewCombobox
I battle to un-select any selected items of a combobox which is inside a cell of the DataGridView.
Usually one can set SelectedIndex = -1 to un-select the items in a combobox or listbox.
Here is the code for loading the DataGridView:
Dim cls As New…

user2924498
- 11
- 1
1
vote
1 answer
datagridviewcombobox columns Dependent on another column
How To Do This Work on gridviewcomboboxcolumns any idea plx
//Form Load Event
string query="select article_name from article";
SqlCommmand cmd = new SqlCommand(query,con);
SqlDataAdapter da= new SqlDataAdapter(cmd);
DataTable dt=new…

user2491383
- 160
- 2
- 4
- 13
1
vote
4 answers
'Cannot bind to the new value member. Parameter name: newDisplayMember'.
I'm using C# in Visual Studio 2010. I have 2 comboboxes that pull data from the database. The code looks something like this:
cbo1.DisplayMember = "Name";
cbo1.ValueMember = "HROfficeLocationID";
cbo1.DataSource = offices;
…

Tatiana Laurent
- 281
- 1
- 4
- 13
1
vote
1 answer
how to fill second Column according to selection of first GridViewComboBoxColumn
i have two DataGridViewComboBoxColumn. i want to Fill second Column according to selection of first GridViewComboBoxColumn.I have groups in first Combobox and services in second one. i want when i select group1, only the services of group1 shows in…

samira
- 1,305
- 10
- 37
- 58
1
vote
2 answers
DataGridComboBoxColumn shows first value on CellEnter
I am having weird results in my DataGridViewComboBoxColumn.
1) When there is no value set, and I click on the cell (not the drop down arrow) the first value in the options shows as the value, and when I click off the cell, it returns back to blank…

Tizz
- 820
- 1
- 15
- 31
1
vote
1 answer
Custom combobox column in DatagridView disappears while selecting another cell
I have hosted my custom combobox (ComboBoxEx) on datagridview by following the steps in http://msdn.microsoft.com/en-us/library/7tas5c80.aspx.
I have created DataGridVIewComboExColumn derrived from DataGridViewColumn.
Custom cell named…

Kaizen
- 219
- 2
- 17
1
vote
1 answer
How to databind a combobox column in a DataGridView?
My situation is below:
I defied a class called "Student", it is as simple as below:
public Student
{
Public string Name;
Public List Subjects;
}
Then I defined a List called studentList.
How can I combine this studentList…

user1709325
- 41
- 1
- 2