Questions tagged [datagrid]
A graphical user interface element that presents a tabular view of data.
15,805
questions
-1
votes
0
answers
11
views
How to Bind to a UserControl in a DataGridRow
I can’t make binding work to a UserControl in DataGridTemplateColumn. The UserControl is TagSelect.
Testing it stand-alone on a window shows it works correctly.
SelectedTags is a DependencyProperty ...
0
votes
0
answers
3
views
Autoheight in MUI DataGrid
I'm using the MUI DataGrid component, and the behavior I hope to have is that:
When there's a small number of rows, the table is only the size it needs to for those rows.
When there's a large number ...
-1
votes
0
answers
21
views
WPF DataGrid in DataGridCell
I create my data in DataTable format and equals it into DataContext of datagrid.
I do AutoGenerateColumns="True" because I don't know columns.
How do I show the incoming DataGridCell content ...
0
votes
1
answer
13
views
React Material UI DataGrid - Checkbox Arialabel
i am currently working on a project where we are using DataGrid with Checkbox. But it is failing at the Accessibility testing because of DataGrid checkboxes has same aria-label. How can i have the ...
0
votes
0
answers
26
views
C# WPF | Data Grid image item
How add image to Item in DataGrid
users.Add(new User() { IsLock = asd, HostName = "Sammy Doe" });
servers.ItemsSource = users;
need to add an image to IsLock
-1
votes
1
answer
37
views
No data flows from data grid to Observable Collection after hitting a button
I am using Editable Datagrid in WPF, when ever i edit the grid like creating new records and hitting a button say for example create button, Then data from my data grid flows properly to the ...
0
votes
0
answers
17
views
View not properly updating after Add and Delete in WPF app with SQLite database
I have a fairly simple WPF app which primarily has 2 datagrid's in two different tabitem's.
The datagrid in 1st tabitem has the itemssource PendingBills which is an ICollectionView and it shows some ...
0
votes
0
answers
24
views
How to programmatically upload DataTable and DataGrid at same time
I'm trying to create a table in my application that will list new objects that I will work with later. The problem is that I don't get the data in the DataGrid, but if the LoadAlertGrip() method is ...
-1
votes
0
answers
21
views
How do I add multiple contents of a website in a WPF DataGrid [closed]
Me and my friend, we have a website written PHP, for which I am writing a client in C#.
The website is hosted on 000webhost with the free plan, so I cant use an external MySQL client and we don't want ...
0
votes
0
answers
14
views
How to effectively dynamically store data to DataTable
I'm trying to dump data into DataGrid that I have stored in DB. I would like it to be automatically saved in the DB when new data comes in. The method that collects the data is in one class and the ...
0
votes
0
answers
19
views
MUI5 - how to work with many custom select fields in DataGridPro
What I want: been able to use more than one custom Select component inside a DatagridPro and pass to these custom Select specific information per row.
The only thing I've seen so far is how to ...
-1
votes
0
answers
20
views
WPF DataGrid Matrix View
I have 2 linked tables with a foreign key in one of my tables.
How do I get a view so that one of these foreign keys is a column header and the other a row header, and my main table repeats ...
0
votes
0
answers
20
views
How to create filter for Database
I'm trying to store only objects that are not duplicates of already stored objects in the DataTable and also in the database. I want to have some kind of object filter, so that only unique objects are ...
0
votes
1
answer
27
views
triggering mui datagrid export csv from a button click
I am using @mui/x-data-grid and it has the functionality to export table data to CSV with <GridToolbarExport /> which works well, now I was wondering if is there a way to trigger this export ...
1
vote
0
answers
23
views
Using MUI DataGrid, how to update a cell state onChange?
What I need: I'm using MUI DataGrid > 5. I need that the data that is filled in a cell change automatically the state (onChange). At this moment, I have an useEffect that is listening to these ...
0
votes
0
answers
33
views
The best Collection for working with data from DB [closed]
I came here for advice. My application works with DB data, as far as actions are concerned, it is simple (add, change, delete etc...).
My question now is, what collection should I use when working ...
0
votes
0
answers
13
views
Material ui DataGrid component pagination number getting zero at initial render
As in the title. I am using Material ui Data Grid component for server side rendering option. My question is that, when initial render pagination getting zero as in the below image.butafter the ...
0
votes
0
answers
14
views
MUI DataGrid - Need to Add custom styling property to the data-grid
This is what I'm getting on building
This is how I want the build to be
I'm using a template and its has a predefined style class for dataGrid which is being applied to all the data-grid throughout ...
0
votes
0
answers
26
views
Datagrid binding of the cell is removed after click twice a cell
I found a problem with binding while making a simple color picker. After binding each cell to the indexer in Datagrid, if you click a specific cell 2 times in a row, the binding is removed. The images ...
0
votes
0
answers
16
views
Material UI datagrid datetime
I have two questions regarding the Material UI - datagrid filter with type:dateTime.
When selecting the date in the filter, it shows the AM/PM date format. I did not find anyway to change the ...
0
votes
0
answers
26
views
MUI DataGrid - Automatically hide filter menu on enter
Is there a way to hide the filtering menu when pressing enter with MUI DataGrid ?
Until now, we are obliged to click somewhere else to hide it.
I'm talking about this :
Filtering menu
0
votes
1
answer
62
views
How to bind two Enum property
I'm trying to bind two properties so I can change the background color in DataGrid based on their value. Based on these answers
How to bind an enum to a combobox control in WPF?
best way to bind enum ...
0
votes
0
answers
45
views
Read XML files with different depths and structure and display in a list in WPF
I am pretty new to C# and working with XML, so please bare with my vague description, because I am not sure how to define my question exactly, but I'll give it a try.
I am trying to read XML files ...
0
votes
0
answers
16
views
DataGridTemplate does not retrieve information
Hello so i tried to find some solutions, in the first place i wanna say that i'm new in this language also i'm deeply sorry if my english is not perfect ! Here is the problem I have a DataGridTemplate ...
-1
votes
0
answers
21
views
DataGrid in MUI v.4 React
I am very stuck at adding table content(Data Grid) into Dialog , all I get is empty screen...
Is it possible somehow to insert Data from model.reactions to table which will pop up in a dialog?
If i ...
0
votes
0
answers
27
views
Json.PopulateValues gives error in parsing Json Values
I am using devextreme asp.net core, and using dropdown and tagbox in Datagrid.
Below Shown is my Model For the explained example.
public class DbSendMaterialForHeatTreatment_Dtl1
{
[Key]
[...
0
votes
0
answers
65
views
efficient way of selecting DataGrid rows between two indexes
I have modified c# wpf datagrid PreviewMouseLeftButtonDown default behavior so that rows get select/deselect by clicking instead of default ctrl+click to deselect and all selected rows getting ...
0
votes
0
answers
23
views
WPF - How to Present Data in Groups for turning on/off children?
In my C# WPF project I am trying to present data to the user in groups/sets. Every object belongs to one set, so I guess it is a two level data tree. First, what is the best way to present this ...
0
votes
0
answers
15
views
uploading excel sheet to react data grid and updating data grid when excel sheet is updated
I upload an excel sheet and display it in a data-grid.
some fields are left empty.
is there a way I can upload the same excel sheet and only the newly filled fields are updated in the data-grid?
how ...
0
votes
0
answers
8
views
How to refer to combobox if it is a template in WPF
It is necessary to implement a table (DataGrid), which is initially empty. It has 2 fields: The current date and the item selected from the ComboBox. How to refer to ComboBox'u if it's impossible by x:...
0
votes
1
answer
34
views
How to display selected item from ListView in DataGrid
I recently started learning WPF and c#. Sorry if the question is stupid.
I have some Class Client. Which inside contains the Class Account.
Information about the Client class In addition to the ...
0
votes
0
answers
37
views
<DataGrid> property "onCellEditCommit" doesn't work
I'm using the DataGrid component of Material-UI for displaying a list of items.
I want to make each cell in every row editable and then change the corresponding item of that row.
for that purpose, I'm ...
0
votes
0
answers
39
views
Wpf localization date format in DataGrid XAML - Binding
I have a WPF applciation, one of functionality is convert the date acoording to the CultureInfo.
the cultureinfo.Culture by defalult in my applciation is "en-GB".
And I use the element ...
1
vote
1
answer
19
views
Material UI Data Grid Component Text not getting aligned
I am using DataGrid component inside a div which is inside Box component. I am not able to align center the content of DataGrid. Also, not able to style the header text.
Code is as below:
Blockquote
...
-1
votes
0
answers
19
views
Blazor Datagrid Cells Shifting
My issue is with trying to get all my entries to stay under their respective columns.
Because I allow my object model to have null properties, I end up with some rows having nothing display on ...
0
votes
1
answer
42
views
How to change BorderBrush of the DataGrid's Border by value
Hi I am trying to change BorderBrush property of the Border elemen in DataGrid depend on Value of the records.
For example if record will have value = "Low" the BorderBrush will change ...
-1
votes
0
answers
39
views
WPF DataGrid Column Hide or Show
I want to show or hide some columns of datagrid based on the values taken by an enum variable I keep in CodeBehind. How can I do that?
CodeBehind:
public partial class QPoolUserControl : UserControl
{
...
0
votes
0
answers
30
views
React MUI Datagrid UpdateRows
I'm using MUI Datagrid and MenuItem/Select to represent 2 different arrays. Unfortunately, the arrays are not updated on toggle selection or are always one step behind. Can someone tell me what the ...
0
votes
0
answers
49
views
MUI datagrid : how to disable multi-filtering on selected columns
In my project, the filtering function is running server-side, and our service does not provide multiple filters for the same column. So, I want to prevent the MUI Datagrid-pro multiple filters on a ...
0
votes
1
answer
25
views
Drawing a large grid of rectangles with WPF
Hi i'm in the process of trying to create a large 1000x1000 array of rectangles in WPF, where each point in the array i'm able to find the index position using cursor and click on the position to ...
0
votes
0
answers
7
views
MUI DataGrid button changes text only if you clickout between clicks
So I need the buttons I have in Mui Data Grid rows to change text when you click on it. It works, but ONLY if you click out between clicks. So if I keep clicking on the button it won't change text. ...
-1
votes
0
answers
33
views
how to add an item after item to DataGrid
I'm new to WPF. I want to dump records into DataGrid. I know, but the DataGrid when it is refreshed (I need it to change when a new record is added, created from background data in a train), it is not ...
0
votes
1
answer
36
views
How to add Column to DataGrid
making a password manager for myself. im searching it almost 5 hours but i couldnt find any solutions.im using Visual Studio 2022, wpf applicaiton, c#, xaml. if is there a proper video can u link it.
-1
votes
0
answers
17
views
how to update the newest items to ObservableCollection [duplicate]
I'm trying to automatically add table records to DataGrid. I would like the new records to be added automatically without restarting the application. I have a method where I get values (one window) ...
-1
votes
0
answers
28
views
DataGrid invalid cell border not clipped to frozen columns
I have a DataGrid and implemented the IErrorInfo to check for the value of each cell for invalid entries. It works correctly, when there is an invalid entry, the red adorner cell outline will appear ...
-1
votes
1
answer
42
views
How do I paste in a wpf datagrid to an observablecollection
I have a WPF Datagrid that I am capturing the paste command via
<CommandBinding Command="{x:Static ApplicationCommands.Paste}"
Executed="...
-3
votes
0
answers
22
views
How to cooperate between multiple Threads [duplicate]
I hate to post duplicates here, but I have to ask.
The info is here on my previous question.
My problem is that I am trying to create an application that will extract basic information from the mail (...
2
votes
1
answer
22
views
How can I edit a cell of a DataGrid by code?
I would like to edit a cell in a Datagrid by code.
The Datagrid itself has editable columns (firstName and lastName), but if you regret this change there is a column with a cancel button per row that ...
0
votes
0
answers
40
views
WPF DataGrid selected row foreground
I want to change the foreground color of selected rows. I have the following DataGridTriggers:
<DataTrigger Binding="{Binding Data._Status}" Value="Black">
...
0
votes
0
answers
36
views
Proper MVVM for a WPF ListCollectionView?
I'm implementing a ListCollectionView so I can get groupings of objects within my datagrid. It seems to be working pretty well, but it doesn't feel like proper MVVM. I'm a little confused because a ...