Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
1
vote
3 answers

WPF binding SelectedItemBinding of a DataGridComboBoxColumn

I have a student class that defines the properties of a student as follows public class Student { public string Department { get; set; } public string Level { get; set; } public Gender Gender { get; set; } public string…
Ken Janka
  • 121
  • 3
  • 19
1
vote
1 answer

Multiple values in DisplayMember of DatagridViewComboBoxColumn

I have DatagridViewComboBoxColumn bound to a datasource, i want to show "First Name" + "Last Name" in list and display member. How do i do that?
SMUsamaShah
  • 7,677
  • 22
  • 88
  • 131
1
vote
0 answers

DataGridComboBoxColumn initial value

I'm having trouble binding a WPF DataGridComboBoxColumn and setting the initial value. I can populate the combo box with the data from a collection but I can't seem to set the initial value.
mack
  • 2,715
  • 8
  • 40
  • 68
1
vote
1 answer

How can I set a selection in a DataGridComboBoxColumn?

How can I set a DataGridComboBoxColumn item selection programmatically? I want to populate my list with data, and the comboboxitem should set the selected item from the list. But I dont find any way to achieve that. In this example the selection…
Christian
  • 13
  • 5
1
vote
1 answer

DataGrid DataGridComboBoxColumn lose its value after collapsing

I have a GridView whith DataGridComboBoxColumn, it works fine the first time, but when set the column visibility to collapsed, and then return the visibility to visible again, the column lose its value. but the property which is bounded to it still…
IBRA
  • 1,502
  • 3
  • 24
  • 56
1
vote
1 answer

DataGridComboBoxColumn is empty

My DataGridComboBoxColumn does not show any data. It's empty. I have no problem to fill a ComboBox, but DataGridComboBoxColumn doesn't work. .NetFramework 4.6.1 Model: public class Address { public string Firstname { get; set; } public…
PeRa
  • 15
  • 4
1
vote
0 answers

SQLDATASOURCE - Updating database using datavaluefield in combobox

I update in a datagridview. I display a combobox and selected in my datasource datatextfield and datavalue field. When I create my update command, how is it possible to select my value and not my text? UpdateCommand="UPDATE Properties SET…
1
vote
2 answers

CollectionViewSource Not Updating with PropertyChanged

I'm having an enormous amount of trouble with ComboBoxes in a data grid. And really would like some help, i think i've gotten confused by the amount of research and things i've tried. This really should be simple so i must be missing…
Asvaldr
  • 197
  • 3
  • 15
1
vote
2 answers

How to handle event of combobox in datagridview?

I have a checkbox[All] and a datagridview as below: I would like: The inside datagridview, if all checkbox is checked, the checkbox[All] is checked and otherwise if all checkbox is unchecked, the checkbox[All] is unchecked The inside datagridview,…
MinhKiyo
  • 191
  • 3
  • 15
1
vote
1 answer

How do you show a tooltip for a DataGridComboBoxColumn?

I want to show a tool tip for the element style (the non-editing mode) of a DataGridComboBoxColumn. I have not been able to figure out a good way of doing this. In the example below I can either show a tooltip, or allow edits to the cell by…
Jon
  • 363
  • 3
  • 13
1
vote
1 answer

Binding data to a data grid column

i'm new to WPF and i just learned today data binding, so i may have some basics errors. Goal : I want a column in the data grid that will function like a combo box column that shows all the items from a string list. XAML :
zzzz
  • 161
  • 1
  • 9
1
vote
0 answers

WPF DataGridComboBoxColumn Combox Dropdown Mouseclick Ignored

I have a Datagrid that uses a DataGridComboBoxColumn to edit cell values. When I edit a cell, the ComboBox appears as expected, and I can use the mouse to display the dropdown. But when I use the mouse to click on one of the dropdown items, the…
1
vote
0 answers

how to set background color of combobox when index position of already selected item changes in WPF?

I need to highlight combobox background, if any selection have been changed to already selected item of combo box and to reset background when selected back to its original Index/Selection ? need only XAML based solution only
Ayazz
  • 53
  • 7
1
vote
0 answers

WPF DataGridComboBoxColumn different ItemsSource for a specific row

I am trying to give a new ItemsSource to a DataGridComboBoxColumn in a specific row in my program when the selection of an other DataGridComboBoxColumn in the same row is changed. The problem is that I am only able to change the ItemsSource of all…
Mr Rubix
  • 1,492
  • 14
  • 27
1
vote
1 answer

Check if DataGridViewComboBox is empty

I have a datagridview with a combobox column that is bound to an enum as follows: var D = (DataGridViewComboBoxColumn)dgvInputs.Columns[2]; D.ValueType = typeof(MyType); D.ValueMember = "Value"; D.DisplayMember = "Display"; …
Paul Sinclair
  • 223
  • 1
  • 12