Questions tagged [datagridviewcombobox]
263 questions
0
votes
0 answers
How to add a combobox to a datagridview bound to a datatable as datasource in vb.net?
I'm new to VB.NET. Please bear with me. I have a datagridview that is bound to a datatable. I was able to convert the "SLID" column into a combobox column. I'm have this error: "System.FormatException:DatagridViewComboboxCell value is not valid". I…

cool water
- 25
- 2
- 7
0
votes
1 answer
Exposing DataGridViewComboBoxEditingControl
I would like to know how to use the DataGridViewComboBoxEditingControl with vb.net
i need a routteen to run when the user select an item from the datagridviewcomboboxcolumn that i have configured. I am unsure how to attach the object to the column i…

PowerMan2015
- 1,307
- 5
- 19
- 40
0
votes
1 answer
How should I load all the data from a column to a datagridview combobox?
How can I make that the datagridview combobox loads with the items listed in the 'userid' column in my database? I want all the items to be listed on the datagridview combobox from the 'userid' column.
Here are the lines I've written so far:
Private…
0
votes
1 answer
Adding ComboBoxes to a DataGridView programatically
I need some help with the DataGridView class in Windows Forms, I don't know if it's just me but I am really struggling with this class programmatically.
You would think that a simple task as adding a Column as a ComboBox to a DataGridView would be a…

furier
- 1,934
- 1
- 21
- 39
0
votes
3 answers
Clear ComboBox text in DataGridView
I have 2 ComboBox in DataGridView (DataGridViewComboBox), let say Type ComboBox ("Type I" & "Type II") and Options ComboBox. DataGridView and Type ComboBox datasource are set when Form Load. Options ComboBox datasource depend on Type ComboBox…

Blishton
- 109
- 2
- 9
0
votes
1 answer
Color row based on DataGridViewComboBoxColumn selection
I'm using C# in Visual Studio 2010. I have a DataGridViewComboBoxColumn bound to a DataSource. I would like for when a selection is made from the combobox, the entire row to change color. I'm not sure how to do this because the comboboxes don't have…

Tatiana Laurent
- 281
- 1
- 4
- 13
0
votes
1 answer
the text of datagridview disappears
i am using telerik control(data grid view) in my project. but when i want to add new row in data grid, the text of previous rows (bindingSourceService.DataSource = dtservice , bindingSourceUnit.DataSource = dtunit) disappear.
my datagridview has 3…

samira
- 1,305
- 10
- 37
- 58
0
votes
1 answer
Loading data to datagridview from excel gives error
I am trying to upload records to my datagridview from excel. My datagridview contains a combobox column which is populated with account numbers.
All fields till the comboxbox are loaded correctly. When the load reaches the combobox it throws an…

Nelsons
- 47
- 1
- 11
0
votes
1 answer
Create a DataGridView with ComboBoxColumn from a DataTable
I have a DataGridView that I would like to fill programmatically. By creating a DataTable and binding it through a BindingSource to a DataGridView, the columns in the DataGridView are created as TextBoxColumns. A code sample below:
Dim dataTable As…

joharei
- 578
- 1
- 5
- 22
0
votes
0 answers
Loading data into a datagridviewcomboboxcolumn
I have a datagridviewcomboxcolumn to which I need to load data either from another form or by excel.
Before loading, I am validating the data to make sure it exists in the datagridviewcomboxcolumn list.
Whenever I try to load the data, it gives an…

Nelsons
- 47
- 1
- 11
0
votes
0 answers
Match a field in datagridviewcombobox as in the combobox items collection
Need a small help with datagridview's comboboxcolumn. I already have a column 'vat_percent' and its dataproperty name to 'vat_per'. I have few items in a items list(manually set). So, when I load data from a database with the columname 'vat_per',…

Dester Dezzods
- 1,417
- 4
- 17
- 33
0
votes
1 answer
DataGridView DataError not thrown from first row
I have a DataGridView that is bound to a DataTable which in turn is filled from a database. In this grid, I have a couple of DataGridViewComboBoxColumns with data bound to ArrayLists like so:
Dim ComboBoxData As ArrayList = New ArrayList(New…

joharei
- 578
- 1
- 5
- 22
0
votes
1 answer
Set Focus on DataGridViewCombobox while pressing arrow key up and down
I have a datagridview in which there are three columns .actually this is a dataprocessing application thats why i want use of keyboard(minimal use of mouse)
the code is as follows
[code languge="csharp"]
private void Form2_Load(object sender,…

deepak omar
- 3
- 5
0
votes
1 answer
Fill ComboBox inside a DataGridView with two Different Tables in C#?
I am capable of filling ComboBox with one Datatable. But i am not able to fill the same combobox with another datatable during runtime. First dataTable and Second Datatable contains different Data with Same Columns.
dtOne=…

Anjali
- 1,680
- 4
- 26
- 48
0
votes
1 answer
How do I add values to a DataGridViewComboBoxColumn DataSource?
I have an issue wherein I have a DataGridViewComboBoxColumn in a DataGridView and I want to add an item to the DataSource.
I've initially set the DataSource property to a List which works fine. Later I'll add an item to this list, which…

Kris Harper
- 5,672
- 8
- 51
- 96