Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
0
votes
1 answer

Not able to find "SelectedIndex" property of DataGridViewComboBoxColumn in Visual Studio 2010

I am new to windows forms application development. I am using an editable grid view for data entry. One of the fields in the grid view is of type ComboBoxColumn. I am filling the data in code. My problem is if data item count is greater than 0 then…
0
votes
2 answers

wpf toolkit, datagrid, comboboxcolumn

In a datagrid I have two DataGridComboBoxColumns. The items of one of these columns should depend on what is selected in the other column. The underlying collection used to model this is a dictionary>. How should i go about…
fsl
  • 831
  • 1
  • 11
  • 24
0
votes
1 answer

WPF How to make the background of DataGridComboBoxColumn to be the same as DataGridTextBoxColumn

I have a datagridCombox Column in datagrid. In order for the combobox to show like a combobox all the time (click or not) The combobox is implemented as this xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit" …
toosensitive
  • 2,335
  • 7
  • 46
  • 88
0
votes
2 answers

What namespace must be used to get a DataGridComboBoxColumn?

I am writing an app in C# 3.5 in WPF. I want to programmatically add a DataGridComboBoxColumn in C# to a WPF toolkit DataGrid. The problem is that the control itself seems to not exist because I am missing either a directive or an assembly. I…
Partial
  • 9,529
  • 12
  • 42
  • 57
0
votes
1 answer

DataGridComboboxColumn Binding with ObservableCollection

My little project looks now quite different. Now I have ObservableCollection OC1 with data which I want to bind with whole DatagridTextBoxColumns (via Binding Path) and ObservableCollection OC2 where I store cases for DatagridComboboxColumn (as…
0
votes
1 answer

C# and WPF - Binding List on ItemsSource on DataGridComboBoxColumn

I want to bind List (which contains data from LINQ query) with DataGridComboBoxColumn as ItemsSource. SelectedValue property is taken from other List with data for whole DataGrid. XAML:
werasquez
  • 99
  • 2
  • 10
0
votes
1 answer

Failed to bind the combobox in datagrid

In the below sample, I try to bind the PartNumber to load into DataGridComboBoxColumn, but I couldn't able to do it. How can I do this? public class Order { public string OrderName { get; set; } public List PartsList { get; set;…
Smaug
  • 2,625
  • 5
  • 28
  • 44
0
votes
1 answer

.NET 4.0 DataGridCombobox SelectionChanged issue

I have a requirement in my program that the object bound (from ViewModel) in a Combobox is updated as soon as an item is selected in the combobox. Currently, the object only updates once the edit is committed by either pressing Enter or leaving the…
Josh
  • 101
  • 1
  • 4
0
votes
1 answer

How to bind DataTable to DataGridComboBoxColumn

I have and DataGridComboBoxColumn in the DataGrid a WPF window. I am assigning DataContext to Window as below: cls = new MyClass { selValue = 2, DataGrid = dtGrid, ComboGrid = dtCombo …
Nps
  • 1,638
  • 4
  • 20
  • 40
0
votes
1 answer

WPF change datagrid combobox ItemsSource to value of another datagrid combox

I have a datagrid with 2 DataGridComboxClolumn elements and want to change the ItemsSource of the second when the value of the first is changed. How can I set up such a binding? Note: the datagrid has it's own itemssource and the data is hierachical…
wlamers
  • 1,276
  • 2
  • 12
  • 14
0
votes
1 answer

DataGridViewComboBox Column Datatsource

I need to Bind a DataGridView to a Data Table that I will populate through Oledb. This part isn't a problem, but what I want to do is then replace some of the standard columns of the DataGridView and replace them with DataGridViewComboBox columns.…
Derek
  • 8,300
  • 12
  • 56
  • 88
0
votes
3 answers

DataGridComboBoxColumn Binding with 2 lists

I have trouble with binding the values of a ComboBox in my DataGrid:
antoine
  • 21
  • 2
0
votes
1 answer

Adding a comboboxcell to datagridview dynamically

I have a datagridview that gets populated dynamically. I want some of the columns to get populated with a combobox depending on some condition. But my comboboxcell gets added at the bottom most row instead of the proper row. Can anybody tell me what…
0
votes
1 answer

Why DataGridView ComboBox displays the ValueMember value?

I am currently working in C# window application. There I use data grid view combo box in the DataGridView. While clicking the drop down box it displays the Name field, if I select the name field from the drop box, it displays the value member value…
Vinoth
  • 753
  • 3
  • 12
  • 23
0
votes
1 answer

Binding a DataGridComboBoxColumn to s static Source

I have a DataGrid with a DataGridComboBoxColumn and I want to bind it to a static source containing only options "A","B","C" current xaml:
Ashutosh
  • 25
  • 1
  • 12
1 2 3
21
22