Questions tagged [datagridviewcombobox]
263 questions
0
votes
1 answer
set Datagirdviewcombobox column value in Vb.net
I have datagrid with two datagridviewcombo column, one column is dynamic fill and one has fixed hardcoded values.
The problem is I can't set the value of dynamic GridViewComboBox, when I try to set it generates continues…

Atif
- 278
- 1
- 3
- 16
0
votes
1 answer
dataGridView with comboBox
I have existing combo box in my program, it has adding some events, its list of element is changing in time. I have dataGridView with dataGridViewComboBoxColumn. Now I want to add my combo box to one cell in dataGridView. How can I make it? I try…

nirmus
- 4,913
- 9
- 31
- 50
0
votes
1 answer
DataGridViewComboBoxColumn - editing the Items
I am working with a DataGridView and have a column of type DataGridViewComboBox and I have stumbled across a problem. Basically, depending on the value of the cell, i would like to set the .Items to a certain set of strings, but when the value is…

Lloyd Powell
- 18,270
- 17
- 87
- 123
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
1 answer
How to make headers in a DataGridView drop downs, and populate the column based on the value
I am new to VB, and am struggling to figure out how to make this work. I have 3 databases being used on the back end that are populated by forms. I want to create the ability for the users to generate custom reports and export them to a .csv file.…

peanutlemon
- 13
- 3
0
votes
0 answers
Adding values to datagridcomboboxcell during validation + hitting Enter = Null Reference
I have a datagridview displaying user information. The datasource is a dataset table, and I want the values of this dataset to change dynamically when the use edits the values in the datagridview. To do this I have harnessed the datagridview's…

user1723280
- 11
- 1
- 2
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
Is it possible to start editing a DataGridViewComboBoxCell by pressing down key?
I'm working on a project where I use a DataGridView, with some of the columns being DataGridViewComboBoxColumn.
My users want to edit these ComboBoxCell by pressing Down key.
I've actually two ideas on how doing it:
Change the key that starts…

Zoma
- 321
- 7
- 20
0
votes
1 answer
How to change the value of specific column in DataGridView based on selected index changed of DataGridViewComboxColum?
I have a DataGridViewComboxColum named “cbxActionType” on my windows form application which have the following values in its item collection.
• For Information
• For Comment
• For Review … etc.
DataGridView1 has a column named “NDays” which…

Khalid
- 21
- 5
0
votes
0 answers
Issue in setting combobox.dropdownwidth to max width in datagridviewcombobox
I have a datagridview combobox column. I need to dynamically adjust the width of combobox to the longest string width, so that user can read lengthy string in the combobox item.
My code is
int width = comboBox.DropDownWidth;
…

Greeshma R
- 61
- 1
- 5
0
votes
1 answer
vb.net / DataGridView / ComboBoxCell?
I am using vb.net 2010 and winforms and DataGridView.
The DataGridView has a DataGridViewComboBox column. When I show the form with the DGV it shows this and empty grid but the column that contains the ComboBox shows the first item on the dropdown…

Alex
- 2,081
- 14
- 49
- 76
0
votes
1 answer
C# DataGridView add row programmatically
I am building a dispatchers application for the Red Cross in my region. The dispatcher will see a list (DataGridView) with all units under his/her control. Each row (unit) has 7 columns.
eid (text)
roepnr (text)
locatie (ComboBox)
melding (text)…

Bernhard
- 1,455
- 5
- 19
- 24
0
votes
1 answer
DataGridView - ComboBox as Header Cell
I would like to have a DataGridView with ComboBoxes as Headers. The DGV always has 2 columns. I need the comboBoxes in order to select the unit that the values I fill in are (e.g. first column is going to be sec, min, hr).
I did look up and try the…

Martin
- 25
- 7
0
votes
1 answer
Populate ComboBox starting value from datagridview dataset
I have a dgv with 3 columns, ProductID | ProductDesc | CurrentDiscount.
Currently, the 3 columns are textboxcolumns, are are populated using a datasource binding to a SQL table which works fine.
What I actually want is for the CurrentDiscount column…

Gareth Doherty
- 187
- 1
- 3
- 15
0
votes
0 answers
Combo Box, in datagrid view, selection not retained c#
I have datagridview which has three columns in which two columns are simple non- editable text columns.Third one is a combo box column.If I change a value from dropdown of combo box and click another cell, value is reset to default.Selection changed…

CuriousExtreme
- 47
- 6