Questions tagged [datagrid]
A graphical user interface element to display and manipulate data in a tabular format.
16,286
questions
0
votes
1
answer
60
views
WPF DataGrid not displaying data with DataTemplate and DataTriggers
I have ViewModel
public class ViewModel
{
public string TestField { get; set; }
public ObservableCollection<object> TestCollection { get; set; }
public ViewModel()
{
...
0
votes
0
answers
11
views
How do I add a blank line at end of DataGrid?
I'm working on a UWP application using the DataGrid component on most of my screens.
My customer has a simple request. Many of his users will go into the Windows settings and enable the "Always ...
0
votes
1
answer
74
views
C# WPF DataGrid change row format (e.g. background) on value PropertyChange
My goal is to change the row / cell style of a DataGrid, when the underlying value property changed. It is indepented of the value, the DataGrid should only show that it has changed. I have a list of ...
0
votes
1
answer
27
views
Making my data object suitable for (easy) use with DataGridView and/or DataGrid
I have inherited a model object that conforms to IEnumerable, but none of the other Binding-related interfaces. The object is table-like and normally populated with data that ultimately comes from ...
0
votes
0
answers
9
views
Reacting Event on Filter in MudDataGrid
I have a MudDataGrid where I support filtering on my source column and I want to execute code, whenever the filtering is updated.
I have looked at the API and intellisense and I cannot see any events ...
-1
votes
1
answer
47
views
MVVM - Keep Selection after .Clear and new Load the ObservableCollection
I have an application that pulls a DataTable using a SQL Select and then loads each item into an ObservableCollection for each class.
ViewModel:
public ObservableCollection<SchachtelEintrag> ...
0
votes
0
answers
53
views
Why DataGrid does not show properties in Akgul.Maui.DataGrid library?
The problem with this code is that I do not receive any properties in the grid in app though in debbuging Words property public ObservableCollection<Word> Words { get; } is correctly populated ...
1
vote
1
answer
48
views
WPF: how to bind to a dictionary item from ContentTemplate of DatagridHeader
I'm trying to implement a filtering popup with combobox on a datagrid header. I'm trying to bind the itemsource of the combobox inside the popup to the content of the related column.
To do this I'm ...
0
votes
0
answers
22
views
How do I show right-aligned text in a WPF DataGrid column that is truncated on the left side instead of the right?
I need to show right-aligned text in a DataGrid column that is truncated on the left side if the column is to small. The right part always has to be visible.
I tried the following xaml without success ...
0
votes
0
answers
45
views
WPF DataGrid RowDetails with Button for only one row
i have a DataGrid with collapsed RowDetails:
<Setter Property="RowDetailsVisibilityMode" Value="Collapsed"/>
And I have a Button with fallowing code to open the RowDetails:
...
0
votes
0
answers
12
views
how can I block copy data column to column in DataGridPremium
I don't know, but I can't find a way to block copying data from column A to column B. Using an example with an image. Want to be able to copy data from Commodity column but only in this column. ...
0
votes
1
answer
32
views
React Datagrid Individual Icon Update
Working on an SFTP fileuploader. Small app sends uploads/downloads files to and from S3 and am using MUI DATAGRID.
Functionality is ok - I click download/upload and it download/upload the file from ...
0
votes
1
answer
43
views
WPF setting dynamic height to DataGrid and using Horizontal GridSplitter
I am creating an application containing grid with 2 rows. It has a DataGrid in a top row and description area in the bottom row. Now I have 2 problems:
If I do not set the height of the DataGrid ...
0
votes
1
answer
67
views
Datagrid Row background color when using contextmenu
please help me
When im using context menu for row datagrid, the background changes to a different color.
How to fix it?
standart background
background when using context menu
<DataGrid x:Name=&...
0
votes
0
answers
21
views
The Mui DataGrid table is not getting Responsive for mobile layout when I used the Mui MiniDrawer
there, Here I am using the MiniDrawer Variant from Mui Drawer and I am also using the Data Grid table form Mui x , here the problem is if I used the Data Grid table without drawer means its gets ...
0
votes
1
answer
59
views
How to add a row to DataGrid to display it immediately?
I am trying to add another row in C# WPF MVVM after clicking a button in DataGrid. The problem is that the row is added as soon as I click somewhere else (e.g. in a TextBox). This means that the ...
-1
votes
0
answers
23
views
DataGrid with variable row height
In WPF, I have a DataGrid with some DataGridTemplateColumn. In these columns, I have ListBox that each of them has Binded to a different source with differnt number of items.
How Can I have different ...
0
votes
1
answer
59
views
Binding a List to Fluent Datagrid in Blazor
I am trying to bind a list I return from the database to the fluent datagrid in blazor.
Code to fetch List:
@code {
IList<Assessment>? assm = new List<Assessment>();
protected ...
0
votes
0
answers
26
views
Issue with MUI datagrid and dropdown component: Selected row always shows the last row
`I am junior developer, its first time I want to customize and use the MUI datagrid in deeply way and I have the following issue:
I am facing an issue with the Material-UI (MUI) datagrid and a ...
0
votes
0
answers
12
views
How to remove extra space from mui Grid Data Table , when scrollbar appers?
I am using the mui data grid, the problem I am facing with it when the ScrollBar appears the table header is also taking some space, I want the row to only take space.
Below is my code, Here I am ...
0
votes
1
answer
31
views
WPF UserControl DataGrid Columns Binding C#
I want to create an UserControl in WPF that has a DataGrid inside and I want to use it like I use a standard DataGrid.
For example, my UserControl appears like this:
<UserControl x:Class="...
-2
votes
1
answer
44
views
WPF DataGrid data not showing unless binding mode changed
We have a DataGrid that is bound to an ObservableCollection of object 'Test', where Test inherits from INotifyPropertyChanged. However, despite the ObservableCollection being populated and ...
0
votes
1
answer
23
views
How to make only certain columns of certain rows editable in Datagrid
<Grid>
<igDP:XamDataGrid x:Name="U_XamDataGrid"
BorderBrush="{DynamicResource BorderColorBrush}"
DataSource="{Binding ...
0
votes
0
answers
15
views
wpf datagrid how to implement swipe down to select items swipe up to invert selection
wpf datagrid how to implement swipe down to select items swipe up to invert selection,I've tried the following codes and none of them work, I know it should be done with these events(TouchDown, ...
0
votes
1
answer
24
views
How can I customize the mui-material datagrid header background?
I want to change the design of Mui Datagrid backgriu from
enter image description here
to
enter image description here
But the background color doesn't complete the full header. I tried with "...
0
votes
0
answers
26
views
How to improve performance of grouped DataGrid?
I am having some trouble with WPF when using GroupStyle in a DataGrid.
Loading the data itself is fine (about 2,500 rows). Also having GroupDescriptions on the CollectionView or calculating over the ...
0
votes
1
answer
49
views
Is it possible to add a footer to a Mud Blazor DataGridComponent?
I am new to Mud Blazor, and use a DataGrid component to manage a database's content. I have a simple Add button which allows adding new entry to the datagrid. I have been browsing the specs and Google ...
0
votes
0
answers
30
views
Free Select-Filter Component for a Table in Blazor like Syncfusion
Im looking for a free component like the Select-Filter in Syncfusion for Blazor. Ideally it should be for a Table and not a Grid. I have a Blazor Server App and have a table which Gets data from my ...
0
votes
0
answers
19
views
Invisible DataGrid in C# Avalonia
I'm building an app using Rider IDE and C# + Avalonia Framework. I need to use DataGrid (which, I believe, should function the same as JTable in Java and QTableWidget in C++).
However, when I try to ...
-1
votes
0
answers
23
views
Excluding a column from the column selector in MUI
I am looking for a way to exclude the 'actions' column from the column selector in the MUI Datagrid. I have tried the example in the official documentation but its not working for JS.
0
votes
0
answers
17
views
WPF FrameworkElementFactory | Image in button content [duplicate]
I'm trying to create DataGrid column with "Save" button in header and "Edit" button for each row of DataGrid. Buttons must have icon. But when i'm trying set image to button's ...
0
votes
0
answers
59
views
C# WPF DataGrid column header style error Cannot find source: RelativeSource FindAncestor
I'm using C# WPF .NET Core 6 also Material Design Theme nuget, I have problem with DataGrid's Column Header Style
I have Set a Style for Column Headers of my DataGrid
App.xaml :
<Application....
5
votes
0
answers
83
views
MudBlazor data grid localization using Resource files in Blazor server app
I am trying to localize MudBlazor data grid using resource files. But data grid filter items are still shown in English.
According to this I have added the following class:
using Microsoft.Extensions....
-1
votes
0
answers
18
views
How can I set the Background color of a Datagrid cell on creation?
I'm new to WPF and Datagrids, sorry for the newby question.
While populating the Datagrid I want to add a Background color depending on the value in a List.
I have my XAML simply defined as:
In my C# ...
0
votes
0
answers
22
views
Material-UI Datagrid Cutting Off Last Row
I am running into an issue where a Material-UI Datagrid with a fixed number of rows is cutting off part of the last row (see pic below). The height of the Datagrid is autoHeight.
Image of Datagrid ...
0
votes
0
answers
17
views
I can't apply jalali moment date format to devextreme header filter display data
I can't customize display data in headerfilter.
Hi, I set the value of the column related to the date as solar using the jalali moment library, and when the page is loaded, it is displayed correctly.
...
0
votes
0
answers
13
views
devextreme datagrid looks very faint when disabled
I disable my devextreme datagrid in various situations, but when it is disabled, it appears so small that it cannot be read. How can I solve this problem?
<div className={this.state.disabledGrid || ...
0
votes
0
answers
52
views
WPF DataGrid | How create/fill datagrid row with combobox in code-behind?
I need dynamically create DataGrids with different count of columns and columns data ( so i can't use bindings ).
In some cases i need create combobox in each row of column. So i using ...
2
votes
1
answer
42
views
How do i populate a DevExpress DataGrid without Datasource
I'm trying to populate a DevExpress grid for an status overview with two columns, one string column for the name and one bitmap column representing a status - green or red icon.
public void ...
0
votes
0
answers
25
views
React MUI DataGrid Server Side Pagination is not working Methods are not getting called
I have the following component
export const Setting = ({ id }) => {
const [pageState, setPageState] = useState({
page: 0,
pageSize: 5,
});
const { data: usersList, isLoading, isError } ...
0
votes
1
answer
36
views
React MUI DataGrid pagination not working
I have a datagrid:
const handlePageChange = (newOffset, newLimit) => {
setOffset(newOffset);
};
<DataGrid
rows={rows}
className="grid-container"
...
0
votes
1
answer
48
views
How to change syncfusion datagrid language ( localization)
When grouping columns in Syncfusion Datagrid winforms its appears like : "column name" : record - 10 items. how can change [items] language or can i change it to another word ?
1
vote
0
answers
62
views
MUI Data Grid non-truncated column width
MUI Data Grid truncates a cell data by default if its content overflows the column width. Are there ways to prevent this so that the column width will match the longest text content of the header and ...
1
vote
1
answer
49
views
WPF datagrid where the header and number of columns is generated dynamically using MVVM
I am trying to create a generic DataGrid in my WPF application where the number of columns and the value of each of their headers is defined through a binding to the class property ResultsHeader, ...
0
votes
1
answer
73
views
params.getValue() is not a function
I am trying to acess the value of the row's column id so that when one click on the icon it will change the url followed by the id but there is an error that TypeError: params.getValue is not a ...
0
votes
0
answers
15
views
MUI datagrid, unable to use getExpandedDetailPanels
I am trying to access the getExpandedDetailPanels in combination with controlled rowSelectionModels. I put it into a useEffect like this:
useEffect(() => {
if (rowSelectionModel) {
...
1
vote
0
answers
31
views
Offset of the grouping in the DataGrid table
I have grouped the data into two columns of the table. But I don't like the way it looks. The second grouping is almost under the first one. How to make it shifted to the right? Is it possible to make ...
0
votes
2
answers
65
views
Style Group Header Rows in .NET Maui application SFDataGrid
I have a Syncfusion SFDataGrid in my .NET Maui application. I have set this up to use a KeySelector for custom grouping of the rows in my DataGrid. However, despite trying to set various different ...
-1
votes
1
answer
42
views
html format in blazorise DataGrid
I'm using the Blazorise DataGrid in my Blazor .NET6 app. In the DataGrid table I want to show html content e.g. a link. So I am providing a string like
<a href="address">This is a ...
0
votes
0
answers
81
views
MUI X Data Grid processRowUpdate gives wrong value from parameter
I have an MUI X Data Grid with processRowUpdate property. The function I have is
(newRow, oldRow) => {
setLineItemRows((prevVals) =>
prevVals.map((row) => {
if (row.id === newRow....