Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
1
vote
1 answer

C# DataGridView Decimal ComboBox column

I have a datagridview with a bound combobox column which contains decimal value. There is a range of valid decimal values so user can choose one of them. However I face a strange problem - when you click on a combobox in the selected value somehow…
Blablablaster
  • 3,238
  • 3
  • 31
  • 33
1
vote
2 answers

how do I dynamically update the selection of comboxboxcolumn in datagrid?

I'm trying to display two columns in a datatable(dt) into a datagrid. And add another column which is a comboxcolumn so that I can assign sectors to each rows. The problem is that the selection of comboboxes cannot be dynamically updated. when I…
Joshua H.
  • 537
  • 3
  • 9
  • 19
1
vote
1 answer

Dynamic ComboBox in a DataGridView

I have a DataGridView with 4 columns, one of them being a drop-down (ComboBox) column. The values in this column must be distinct so once a given drop-down values is selected in a row, I'd like it to not be available in any of the drop-downs in…
Roman
  • 19,581
  • 6
  • 68
  • 84
1
vote
0 answers

DataGridViewComboBoxColumn UI Update Issue

i have an issue with the UI update of a DataGridView with a DataGridViewComboBoxColumn. When I set the value of a DataGridViewComboBoxColumnCell it works but the UI isn't refreshed. I tried Invalidate(), Refresh() on the control. Giving it focus and…
user925715
  • 11
  • 1
1
vote
1 answer

Multiple Selection in Datagridcomboboxcolumn

I need a DataGridComboBoxColumn which should allow multiple selection. To do this, I created a DataGridComboBoxColumn populated with CheckBoxes. I handle the Checkbox selection through CommandManager.PreviewExecuted event selecting the check boxes…
1
vote
2 answers

In a WPF DataGrid with DataView behind we want to show a ComboBox as a Label until clicked

So we have a WPF DataGrid with some ComboBoxes in some of the cells where there is a foreign relation, but this means we have hundreds of ComboBoxes loaded at a time which takes too long. What we would like to do is load a label until it is clicked…
Fugu
  • 361
  • 2
  • 6
  • 17
1
vote
1 answer

Add dropdown list to DataGrid columns and populate rows at runtime C#

My end goal is to populate a DataGrid with data retrieved from a database at runtime. My methodology is to pull all the columns from that database first and then pull the corresponding data for each column for each row as below: …
ketar
  • 178
  • 1
  • 3
  • 10
1
vote
1 answer

How to change color of foreground

help me please. I have DataGrid with ComboBoxColumn and I have to change foreground text. For example: - If ComboBoxColumn have value "IT" foreground must be "Red" - If ComboBoxColumn have value "R&D" foreground must be "Yellow" - If…
Chips
  • 69
  • 5
1
vote
1 answer

ComboBox column in WPF DataGrid with DataTable as ItemsSource

I've got a datagrid bound to a datatable, with a ComboBoxColumn. The XAML for this column is as follows:
drowned
  • 530
  • 1
  • 12
  • 31
1
vote
1 answer

WPF DataGrid ComboBoxColumn not inserting value

I have a WPF datagrid with a combobox column and two textbox columns. In my test case, when the screen is loaded, there are two rows in the collection to which the grid is bound. If I change the contents of any of the cells, it updates properly. …
drowned
  • 530
  • 1
  • 12
  • 31
1
vote
2 answers

IValueConverter error for DataGridComboBoxColumn

So I have a DataGridComboBoxColumn ColCID whose value depends on another cell of the row ColSID (see below code). I tried to implement it with an IValueConverter but I get this error: Cannot find governing FrameworkElement or…
FadedCoder
  • 1,517
  • 1
  • 16
  • 36
1
vote
1 answer

DataGridComboBoxColumn not updating/storing data

So, I'm trying to implement a ComboBoxColumn but it's not saving the data unlike when I edit the other elements. I can choose the elements inside the ComboBox during run but it's not being saved. Even sorting the other rows makes the ComboBox empty…
FadedCoder
  • 1,517
  • 1
  • 16
  • 36
1
vote
1 answer

DataGridComboBoxColumn initial value not displaying

I have a DataGridComboBoxColumn that's bound to an enum. The dropdown displays the values of enum correctly, but the combobox does not display any value initially. I am trying to bind the selected value to a Gender property of a DataTable that's the…
Marij Khan
  • 151
  • 1
  • 12
1
vote
1 answer

Is there a way to remove the selection line(highlighted) in a databound combox on a datagridview?

I am having trouble with a databound datagridviewcomboboxcell I want to remove the blue selection line that appears on a databound comboboxcell. I noticed that if a comboboxcell is not databound but has a collection of items, the blue line does not…
1
vote
0 answers

Why does Binding on DataGridComboBoxColumn not adhere to UpdateSourceTrigger from Selector.SelectedItemProperty

Selector.SelectedItemProperty is using UpdateSourceTrigger.Default, which results in PropertyChanged, and this works fine when using a combobox on any control like this: This will result in a…