328 questions
0
votes
0
answers
22
views
How to update the combo box value for multiple rows when one combo box value changes in a data grid?
I'm trying to create a Sheet generator in Revit, using Pyrevit Add in.
So by using Ironpython and WPF, I managed to create a datagrid with multiple combobox columns.
However, for the tool to be ...
0
votes
1
answer
112
views
Binding in DataGridComboBoxColumn does not work
Why does it work this way :
<DataGridComboBoxColumn Header="Format"
SelectedItemBinding="{Binding Format, UpdateSourceTrigger=PropertyChanged}"
ItemsSource=&...
0
votes
1
answer
89
views
DataGridComboBoxColumn won't update for new Item to Display it in C# WPF
I'm using C# WPF .NET Core 6 with Visual Studio 2022, I have DataGrid in my window that Binds to an ObservleCollection
XAML :
<DataGrid x:Name="PGET_LST_SUB" AutoGenerateColumns="...
0
votes
0
answers
187
views
Winforms - applying MeasureItem & DrawItem events for only one combo box column
I am working on a winforms project that contains a data grid view which has two combo box columns.
My goal is to make the first combo box column show specific items that match with certain condition.
...
0
votes
0
answers
434
views
In WinUI 3, CommunityToolkit.WinUi, DataGridComboBoxColumn there is a Binding problem
In my view model class, there is an [ObservableProperty] called EmployeesList of type ObservableCollection<Employee>.
Similarly there is another [ObservableProperty] called LeavesList of type ...
0
votes
2
answers
615
views
Why is the ComboBoxColumn very slow on drop-down open in DataGrid WPF?
I am using C# WPF and currently, I am loading some data from the database in Datagrid.
I loading more than 24,000 rows from a table in the database into DataGridComboBoxColumn, the problem is that ...
0
votes
2
answers
1k
views
How to Access the property of Combobox inside of a DataGrid in WPF
I want to Display data in my ComboBox inside of DataGridTemplateColumn in the DataGrid
but it's empty in the binding so I decided to fill it in code behind but I couldn't access it by name!
XAML:
<...
0
votes
2
answers
335
views
Datagrid with Autocomplete combobox - again
I understand this has been asked several times but I am unable to find a toolkit that allows for a combobox in a WPF DataGrid that allows to filter and autocomplete, none of the questions provide any ...
1
vote
1
answer
669
views
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....
0
votes
1
answer
319
views
How to bind DataTable with different combobox items each row to DataGridView?
I created a general DataTable like this, it's fine :
BindingSource bindingSource1 = new BindingSource();
bindingSource1.DataSource = CreateDataTable();
dataGridView1.DataSource = ...
-1
votes
1
answer
60
views
How do we display data from database into DataGridViewComboBoxColumn in Windows form C#?
How do we display data from database into DataGridViewComboBoxColumn in Windows form C#?
My database table ticket looks like this:
I want to display it into my dataGridView which has two ...
0
votes
1
answer
135
views
DataGridViewComboBoxColumn not saving to datasource unless enter is pressed
I have a DataGridView whose DataSource property is bound to a DataTable. Said DataTable is manually populated (not from a database). I will not go into details as to how exactly this happens because ...
0
votes
1
answer
240
views
Select ComboBox First item in DataGridComboBoxColumn [closed]
I want the first item of each combo box to be selected automatically.
<DataGridComboBoxColumn SelectedItemBinding="{Binding Version}" >
<DataGridComboBoxColumn....
2
votes
1
answer
54
views
WPF VB DataGridCombox DataGridRow
I have gone at this for days and cant find a solution please help.
I have a WPF application I have a DataGridCombobox it has stuff in it (list of Arguments). I can also add free hand typed text into ...
0
votes
0
answers
41
views
Populate A DataGridViewComboBox
Looked at some of the suggested solutions couldn't find one that got me rolling.
I have a DataGrid that gets filled with the Following Code
DataGridViewBranches.AutoGenerateColumns = False
...
1
vote
1
answer
1k
views
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 ...
-1
votes
1
answer
167
views
DataGridComboBoxColumn opens after 2 mouse clicks
I have a datagrid and it has DataGridComboBoxColumn like below. When i open datagrid, 2 mouse clicks show the combox. How to show combobox when datagrid is loaded without click.
<DataGrid x:Name=&...
0
votes
0
answers
337
views
WPF Combobox inside DataGrid: Combobox value changes back to old value after current row looses focus
In my WPF DataGrid, the data is populated from Employee class (shown below). The StateName column in the Employee class is a Combobox inside DataGrid. The Combobox is populated from the State class (...
0
votes
1
answer
401
views
MVVM WPF: Remove element from DataGridComboBoxColumn based on selected item
Currently i have a datagrid that contains some columns. One of these columns is a DataGridComboBoxColumn.
This is bound to a two classes. SelectedValueBinding is bound to my Model class property ...
0
votes
1
answer
214
views
Binding DataGridComboBoxColumn to Object
I'm trying to bind a Combobox to an object within a datagrid with little success.
Object.cs:
public class Object {
public static IEnumerable<string> Colors => new List<string> {"Red",...
1
vote
1
answer
230
views
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&...
0
votes
1
answer
305
views
Itemsource Binding Unique for each row in DataGridComboBox C#
I have this problem, and I appreciate if you help me with it.
I have a ViewModel with public ObservableCollection<IProfile> Profiles { get; set; } Property which fills a DataGrid.
Inside the ...
0
votes
1
answer
289
views
DataGridComboBoxColumn transparent ComboBoxItems
I'm trying to create a software to modify MODBUS devices, and per tag address of the device has its own tag type. I want to select it by using combobox. The strange behavior of the combobox occurs ...
1
vote
1
answer
257
views
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 ...
1
vote
1
answer
764
views
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 ...