Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
2
votes
1 answer

Style DataGridTemplateColumn to Match DataGridComboBoxColumn

EDIT (clarification of requirements) I have a DataGrid as shown below. The values in the "Field Name To Store Old EmpNo" column change based on the value selected in "New EmpNo Rule" column. To accommodate this, each item in the DataGrid…
BrianKE
  • 4,035
  • 13
  • 65
  • 115
2
votes
1 answer

Boolean dataGridComboBoxColumn display Yes/No

I have a dataGrid bound with a Collection. For two columns (A and B), the data are 1 or 0. Instead, I would like to display Yes or No in a comboBoxColumn and of course if 'yes' is selected 1 is saved and 0 for 'no'. How can I do that? View …
Cantinou
  • 126
  • 5
  • 21
2
votes
1 answer

WPF4 DataGridComboBoxColumn doesn't work

Look how odd is the following scenario:
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
2
votes
1 answer

datagridcomboboxcolumn binding in code

I'd like to do this entirely in code, no XAML: Given are DataGridComboBoxColumn myDGCBC = new DataGridComboBoxColumn(); ObservableCollection DataSource = new ObservableCollection{"Option1", "Option2"}; myDGCBC.ItemsSource =…
2
votes
1 answer

How to force editing of a DataGridComboBoxColumn?

I can expose a DataGridComboBoxColumn on a grid, but the user must click it twice to show its drop-down list (the first is to gain focus and enter in edit-mode). How can I force programatically to show the drop-down list?
Néstor Sánchez A.
  • 3,848
  • 10
  • 44
  • 68
2
votes
0 answers

WPF DatagridComboboxColumn Keyboard operation

I am using a WPF datagrid with some DataGridComboboxColumn columns. When I open the dropdown and select an entry with the mouse, the combo gets this selected entry as new current item. When I navigate the drowdown with cursor keys and press ENTER,…
klawusel
  • 681
  • 1
  • 6
  • 19
2
votes
2 answers

Binding DataGridComboBoxColumn with model

I create WPF application with Entity Framework(code first) .I have this model public class Person { public int Id {get; set;} public string Name {get; set;} public virtual Country Country {get ;set;} } public class Country { public…
FetFrumos
  • 5,388
  • 8
  • 60
  • 98
2
votes
2 answers

How to bind two dependant ComboBoxes in a DataGrid

I've a problem with the WPF datagrid. I have two ComboBox columns and the second one should set it's datacontext dependant of what is selected in the first one. ViewModel public class MyCollection: AbstractViewModel { private BindingList
Mighty Badaboom
  • 6,067
  • 5
  • 34
  • 51
2
votes
2 answers

DataGridComboBoxColumn binding to ObservableCollection

I have the class Devices with Platform as one of the properties: public partial class DevicesCollection : ObservableCollection { public DevicesCollection() : base() { } } public partial class Device : INotifyPropertyChanged { …
Dmitry Z
  • 31
  • 1
  • 3
  • 6
2
votes
2 answers

VB.NET datagridview one-to-one mapping of combobox

I have a datagridview with two textbox columns and one combobox column. The combobox's DataSource is bound to enums for the values of the dropdown. The datagridview's DataSource is bound to a custom class with datatypes of string, string and…
2
votes
1 answer

Dynamically fill the ComboBox of an DataGridComboBoxColumn (WPF, DataGrid)

in my WPF application, I have a DataGrid, which is bound to an ObservableCollection.
Aaginor
  • 4,516
  • 11
  • 51
  • 75
2
votes
1 answer

Binding WPF DataGridComboBoxColumn with MVVM (WAF)

Help me to solve binding problem. The poject is in WPF + WAF + ef code first. I want to bind DataGridComboBoxColumn value to models property, but something not working. Models: public class DocumentMove { [Key] public Guid…
Daler
  • 814
  • 14
  • 28
2
votes
1 answer

How to use DataGridComboBoxColumn?

I created a DataGrid and added a DataGridComboBoxColumn programmatically. public partial class MainWindow : Window { private DataGridComboBoxColumn weightColumnChar = new DataGridComboBoxColumn(); ObservableCollection mComboBoxValues; …
2
votes
1 answer

Change DatagridviewTextBox Text When DatagridviewComboBox Selected Index Changes

In My DatagridView,I Have Two Columns, ComboxboxColumn and TextboxColumn. I want to change the value of textbox when combobox selected index changes (in general combobox it has selected index change event but datagridviewComboBox does not have it)
Arash
  • 3,013
  • 10
  • 52
  • 74
1
vote
1 answer

How to create combobox cell with DisplayStyle ComboBoxList?

I have datagridview and column with cells DataGridViewComboboxCell. DisplayStyle is set as Nothing. When I start typing in this cell changes its style to combobox. And I cannot provide my tekst, because cell search item according to text providing…
Robert
  • 2,571
  • 10
  • 63
  • 95