Questions tagged [datagrid]

-2 votes
0 replies
What is the most correct way to fully adapt this code to the MVVM pattern?
I have a DataGrid with a DataGridComboBoxColumn. Each ComboBox should have the same drop-down: the new values entered in the ComboBox (the ComboB...
asked 4 months ago
0 votes
0 replies
How can I add a comboboxitem associated with a custom click event handler to all comboboxes in a DatagridTemplateColumn,in WPF
The data source of my comboboxes in 'DatagridTempalteColumn' are binded to a observable collection.How can I add a default item associated to a e...
asked 4 months ago
0 votes
1 replies
How to make the ComboBox column's editor elements save the user-selected new value?
The full XAML and code-behind are below. I have a Window with a DataGrid with a single column, a DataGridComboBoxColumn. In its EditingElementSty...
0 votes
1 replies
How to hide the ComboBox's drop-down on click on one of its ComboBoxItem-s when the ComboBox is inside a DataGridComboBoxColumn?
I have the complete XAML markup below (no code-behind is needed): a Window with a Grid with a DataGrid with a single column of type DataGridCombo...
-1 votes
0 replies
How can I have report values filtered from webdatarocks?
I'm using WebDataRocks report from https://www.webdatarocks.com but when I try to use the method report.getData({}) the following error happens:...
asked 4 months ago
0 votes
0 replies
WPF DataGrid - Dynamic Two Way Binding to T instances in ObservableCollection<T>
Suppose I have a model (leaving out the full implementations of INotifyPropertyChanged for brevity): public class MyModel : INotifyPropertyChan...
asked 4 months ago
1 votes
0 replies
ComboBox in DataGrid is being emptied only when ItemsSource depends on row
I find myself in a situation where whether or not a given ComboBox in a DataGridRow is being emptied depends on whether or not its ItemsSource is...
asked 4 months ago
0 votes
0 replies
Bind control event to code event/command/method
I have a datagrid that I would like to, whenever values in any cell change in gui, updates other properties in the view model. I have seen this...
asked 4 months ago
0 votes
0 replies
Clarity datagrid First column after collapse, filter gets hides in navigation panel after click on Clarity datagrid filter
Clarity datagrid First column after collapse, filter gets hides in navigation panel after click on Clarity datagrid filter enter image descript...
asked 4 months ago
0 votes
0 replies
input string was not in a correct format. GenerateEditingElement combobox datagrid column
Exception: Input string was not in a correct format I am not sure how i am getting this. It only happens when i try to re-enter the cell when a...
asked 4 months ago
0 votes
2 replies
Binding datagrid columns to viewmodel
I've got a view model working perfectly which basically has the following properties: -ItemCollection - Name - Type - D...
asked 4 months ago
0 votes
1 replies
Remove header border of a DataGrid
How can I remove the grey line which is visible between the Header and the Row of a DataGrid. 0 1 Answers 1...
asked 4 months ago
0 votes
0 replies
Get the desired row of DataGrid
I am using DataGrid in my project. All columns are textblocks besides one of them which is combobox private void LevelsBox_SelectionChanged(obje...
asked 4 months ago
0 votes
0 replies
Checkbox Inside a Data Grid not changed the checked event on Button click event for the first time
I have a data grid with four columns which includes 3 text column and a checkbox. Clicking on checkbox of different rows then click on delete but...
asked 4 months ago
1 votes
1 replies
How do I notify a row in a WPF DataGrid that one of its cells was programmatically modified?
I am creating a DataGridRadioButtonColumn for my WPF project. Here is what it looks like: public class DataGridRadioButtonColumn : DataGridBoun...
asked 4 months ago
0 votes
0 replies
How to fix “There is no row at position 1”
I arranging and extracting data from database to the datagrid, i am trying to custom the column and rows to display the data desired, through the...
asked 4 months ago
0 votes
1 replies
WPF DataGrid Automatically selecting checkbox bug?
I have a DataGrid and loading some data of custom type. Also have a Checkbox column. When checkbox is checked current row data is taken by follow...
asked 4 months ago
0 votes
0 replies
What can be efficient way to create outlook like scheduler in C# wpf?
I am working on a c# project for managing Table reservations in a restaurant. For this, I want to create an Outlook-like scheduler which would gi...
asked 5 months ago
0 votes
1 replies
How to build multi-level datagrid
I'm using Entity Framework 6 with my C# WPF application and want to show my data in a multi-level datagrid. My dataset contains 2 simple entitie...
asked 5 months ago
0 votes
2 replies
How to add a row to a DataGrid in WPF?
I'm trying to add a row in a DataGrid. I want each item to be a string. This is what I've tried: string[] testRow = { "hi", "h2", "h3", "h4" };...
asked 5 months ago
0 votes
0 replies
Convert grid in data to distance on a globe
I want to try and calculate the distance between two grids (which might have some values in them (not important for now). Suppose I have divided...
asked 5 months ago
0 votes
0 replies
How to save information in array and Load the array information in the datagrid in wpf(C#)?
I receive data from a database of a DataGrid columns and apply some changes to it. Now how do I put new data in DataGrid to display? Can I do th...
asked 5 months ago
1 votes
1 replies
Bind Custom DataGridHeader MVVM
I am trying to Bind a TextBlock inside the Header of a DataGrid. However, it doesn't seem to be binding. I've tried setting the DataContext to th...
asked 5 months ago
8 votes
1 replies
Is there a way to easily customize the DataGrid column header?
The UWP Community Toolkit DataGrid reserves a bit of space in the column header for the sorting icon and it makes things look really strange. Whe...
1 votes
4 replies
DataGridHyperlinkColumn text color when highlighted
I have a simple WPF application which displays reddit links in a DataGrid: Notice however that the link in the DataGridHyperlinkColumn isn't v...
asked 5 months ago