Questions tagged [datagridviewcombobox]

263 questions
0
votes
1 answer

Update the datasource for an adjacent cell when selection change occurs in a DataGridView Combo box cell

I have a dataGridView with comboBox dropdowns for each cell. I would like to update the datasource for cell[0,1] when the value in cell[0,0] changes. I created an event handler for the 'selection changed events' on the datagrid view. When the…
DarwinIcesurfer
  • 1,073
  • 4
  • 25
  • 42
0
votes
1 answer

Binding a collection of objects to a ComboboxColumn in a DataGridView

I have a GUI which allows the user to select a report to view/edit. When the user selects a report, it shows the Items in the report. The Item has many properties - most of which are binding properly. One of the properties is Owner, and this is…
Origin
  • 1,943
  • 13
  • 33
0
votes
1 answer

Datagridview ComboBox is blank

I am trying to select a value in the datagridview combo box and from all the googling I think the following should work but it isn't. The problem the dropdown menu is blank initially. I can manually pick a value after that, and it gets saved by my…
SamFisher83
  • 3,937
  • 9
  • 39
  • 52
0
votes
0 answers

Binding BindingList to a DataGridviewCombobox

I have a DataGridviewCombobox which I'm trying to add a new item to and then select that item. Each row in my datagrid has a combo box bound to a different BindingList Below I'm trying to add a new entry to the combo box and display that entry as…
JonF
  • 2,336
  • 6
  • 38
  • 57
0
votes
1 answer

when I want to change a ComboBox of datagridview, its automatically change all other combos of same DataGridView

First of all, I must mention that I have seen this question, but it didn't help me to fix my problem. According to my previous question, I saved my DataGridView to an XML file. Now I am going to fill the DataGridView when I load the window form…
Am1rr3zA
  • 7,115
  • 18
  • 83
  • 125
0
votes
1 answer

Data GridView Multiple Combox

I have a datagridview called GridView1 which has two column each are combobox's, I need to be able to change the items in one of the comboboxes based on the first one. The combobox are dynamically created and the values are bound with single…
Aaraadhana
  • 145
  • 1
  • 3
  • 14
0
votes
2 answers

populating a datagridview combobox column with subsonic & vb.net

Like the title says, I'm trying to populate a combo box column in a datagridview. Here's what i have so far: Dim lc As System.Web.UI.WebControls.ListItemCollection = _ DataAccess.Part.GetListItems() dgvcboPart.DataSource = lc ' This is a…
Tony W
  • 39
  • 1
  • 5
0
votes
1 answer

Binding a combobox associated with another combobox in aspxgridview

I want to bind cities combox associated with countries combobox in devexpress gridview's insert/update mode. My datas in a database so I need db connection. Which way should I try? Thanks for your suggestions. Çağın
cagin
  • 5,772
  • 14
  • 74
  • 130
0
votes
4 answers

Get the new value or index with SelectionChangeCommitted Event of DataGridView Combobox

im using SelectionChangeCommitted to catch the event when a combobox selected index changed, but I can not get it's new value or index. private void ruleList_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { …
0
votes
1 answer

How to select an item from a filling of a DataGridViewComboBox

Project: Winforms, .NET framework: 3.5 (Visual Studio 2008) My problem is: I have a DataGridView with several columns, some of the type and another type DataGridViewTextBoxColumn, DataGridViewComboBoxColumn, DataGridViewComboBoxColumn column is…
0
votes
0 answers

ListBox control changes selection when DataGridView Combo Box selection is changed

Ok, this behavior seems very strange. I have a ListBox which is bound to an IBindingList of strings. In a DataGridView next to it, i have added a combo box column that is bound to the same List, with this code in the DataBindingComplete event. …
Kratz
  • 4,280
  • 3
  • 32
  • 55
0
votes
0 answers

Cancelling selection of combobox value in a datagridview cell vb.net

I have a simple datagridview with 2 columns (Column1 and Column2). Cells in Column1 has a TextBox and cells in Column2 has a ComboBox with two color options (Blue or Red) First, I wanted to change the datagridview row color when selecting a color in…
0
votes
2 answers

DataGridView ComboBox doesn't save when focus

After select a value in DataGridView ComboBox and click a save button in bindingnavigator, data doesn't get update in database. User must lose focus in order to get the data updated. Is there a way to fix this problem ?
JatSing
  • 4,857
  • 16
  • 55
  • 65
0
votes
2 answers

Fill DataGridView ComboBox Column using DataTable

I want to fill DataGridView ComboBox column using MySQL query and every row should have DataGridView ComboBox item collection based on cell value of each row. Imports MySql.Data.MySqlClient Public Class Form3 Sub dgvcbordercall() Dim…
Selikur
  • 3
  • 3
0
votes
1 answer

Combobox in datagridview, key press rotation

I have run into a problem. I have a datagridview and one column that contains DataGridViewComboBoxColumn. The combobox's datasource is a list that looks something like the following: Apa Arne Mia When the user enters one combobox and presses the…
Martin
  • 195
  • 1
  • 12