Questions tagged [datagridviewcombobox]
263 questions
0
votes
1 answer
How to get value in ComboBox Windows Forms? C#
I have two lists and two ComboBoxes. So, I would like to make a relation between them. That means, when you choose from box1 something, then you can choose only some options in box2, which is related to box1.
Notice:
I'm not creating ComboBox in…

Frederico Eglesias
- 55
- 6
0
votes
0 answers
How to make one choice depend on the choice of another?
I have a problem with DataGridViewComboBoxColumn. I have two of those and when I'm selecting something in one, then I would like to see only things which related to that one.
My code:
public Form1()
{
InitializeComponent();
List…

Frederico Eglesias
- 55
- 6
0
votes
1 answer
Using DataGridViewComboBoxColumn for distinct options
I'm modifying a Winforms application in .NET 3.5.
I have a DataGridViewComboBoxColumn populated with some hard coded options as shown below.
//
// dgvCol_PropName
//
this.dgvCol_PropName.DisplayStyle =…

TeamWild
- 2,460
- 8
- 43
- 53
0
votes
1 answer
Problem Datagridview and Foreign & Primary key column
I have a datagridview in which the first column is a Foreign Key and part of the Primary key of a table (Linq2sql). I use a combobox for selecting a proper Foreign Key value.
The thing is that as soon as I want to edit a (new) row it immediately…

Roland Deschain
- 659
- 11
- 21
0
votes
1 answer
Populate combobox in datagridview in VbNet From other table
I have a DataGridView with 3 TextBox columns and 1 ComboBox column. I have tried without result to populate the ComboBox column with data from other table, a suggestion will be apreciated.
This is the code
Dim conn As OleDb.OleDbConnection =…

Jayelef
- 135
- 12
0
votes
1 answer
Adding items to DataGridView Column already defined as ComboBox
I have a DataGridView with a Column already defined as ComboBox. How do I add items to that Column Combobox so that they are available in that column for each new row?
I have tried everything I could think of or find on the web. Here's the latest…

Tim
- 27
- 3
0
votes
1 answer
DataGridViewComboBox - Display 'InActive' value in DataGridView
I have a DataGridView that contains a combo box (DataGridViewComboBoxColumn). This combo box is populated with a set of setup values. These setup values can be inactivated such that only active values are displayed in the combo box, however,…

J.C.
- 2,102
- 1
- 19
- 28
0
votes
1 answer
Event of DataGridViewComboBoxCell
I am using the following code for binding a combo box column in a grid view in my winform
DataGridViewComboBoxCell dgBatch = (DataGridViewComboBoxCell)grvProduct.Rows[pRowIndex].Cells[pComboColName];
DataTable dtBatch = new…

Nithesh Narayanan
- 11,481
- 34
- 98
- 138
0
votes
0 answers
How to filter datagridview with combobbox without query and with invisible column in vb.net
How to filter datagridview with combobbox without query and with invisible column in vb.net?
and is it possible to be only distinct or unique value?
I want filter in "SHI" column.
Note : I use visual studio 2010
Thanks
roy
Private Sub…

roy
- 693
- 2
- 11
0
votes
1 answer
Trigger selected value changed event on DataGridView.ComboBoxColumn
Currently, when a value is selected within the DataGridViewColumn with ComboBoxes, user has to click off that cell in order for the values to refresh via CellValueChanged Event on the DataGridView.
What I am trying to achieve is that as soon as a…

Pawel
- 141
- 1
- 10
0
votes
1 answer
selection in datagridview comboboxcolumn display image in another cell c# windows form
I have load my combobox with the image id and image name from the sql database. I want it if we select any image name in the combobox, the image with that image name will be displayed at another cell. Below code is how i load my datagridview…

Sarah Irdina
- 3
- 2
0
votes
1 answer
How to auto-update DataGridViewColumn?
I created a DataGridView and generate one of the columns by following code:
DataTable accessDT = SQL.GetDT(@"select * from [Access]"); //Custom-made method to get the DataTable.
DataGridViewComboBoxColumn dcAccess = new…

PiggyChu001
- 440
- 6
- 20
0
votes
0 answers
C# Winform - How to bind my object's enum property to a DataGridView's Combobox?
So I'm attempting to code a fully-automated DnD sheet, and for the Extra Bonus section I figured I'd use a DataGridView where the user can freely add new bonuses to their character (including its equipped state, its name, its affected value, and its…

BasuKun
- 31
- 4
0
votes
2 answers
Trapping DataGrid view Error
My users want a way to do mass uploads/edits to our products database, almost as if they were using excel, where they can copy and paste in a spreadsheet. Although this makes me cringe to think about, I am not the boss so it is what it is. I am just…

Nick
- 1,903
- 2
- 21
- 40
0
votes
1 answer
combobox inside a datagridview with bound data
I've created a Datagridview that is bound to a Class CTag.
Inside CTAG I have 2 members that I want to show in the datagridview : name, area
The columns are created automatically because the class CTag is connected as datasource to the Datagridview.…

steven
- 15
- 3