You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Aggregate customization in Blazor DataGrid | Syncfusion
4
-
description: Learn here all about aggregate in Syncfusion Blazor DataGrid and more.
3
+
title: Customize aggregates in Blazor DataGrid | Syncfusion
4
+
description: Learn how to customize aggregate rows in the Syncfusion Blazor DataGrid using CSS, including footer containers and summary cells.
5
5
platform: Blazor
6
6
control: DataGrid
7
7
documentation: ug
8
8
---
9
9
10
-
# Aggregate in Syncfusion<supstyle="font-size:70%">®</sup> Blazor DataGrid
10
+
# Aggregate customization in Syncfusion Blazor DataGrid
11
11
12
-
You can customize the appearance of aggregate elements in the Syncfusion<supstyle="font-size:70%">®</sup> Blazor DataGrid using CSS. Below are examples of how to customize the aggregate root element and the aggregate cell elements.
12
+
Aggregates are displayed as summary rows in the DataGrid footer, providing a consolidated view of totals, averages, or counts. These rows can be styled using CSS to match the layout and design of the grid. Styling options are available for:
13
13
14
-
## Customizing the aggregate root element
14
+
-**Aggregate root container:** The outer wrapper of the footer row.
15
+
-**Aggregate summary row and cells:** The row that shows summary values, and the cells that display each result.
15
16
16
-
To customize the appearance of the Grid's aggregate root elements, you can use the following CSS code:
17
+
## Customize the aggregate root element
18
+
The **.e-gridfooter** class styles the root container of the aggregate footer row. Use CSS to adjust its appearance:
17
19
18
20
```css
19
21
.e-grid.e-gridfooter {
20
22
font-family: cursive;
21
23
}
22
24
```
23
25
24
-
In this example, the **e-gridfooter** class represents the root element of the aggregate row in the Grid footer. You can modify the `font-family` property to change the font of the aggregate root element.
26
+
Properties like **font-family**, **font-size**, and **padding**can be changed to fit the grid layout design.

27
29
28
-
## Customizing the aggregate cell elements
30
+
## Customize the aggregate cell elements
29
31
30
-
To customize the appearance of the Grid's aggregate cell elements (summary row cell elements), you can use the following CSS code:
32
+
The **.e-summaryrow** and **.e-summarycell** classes define the appearance of the summary row and its individual cells in the Blazor DataGrid. Apply CSS to modify their look:
31
33
32
34
```css
33
35
.e-grid.e-summaryrow.e-summarycell {
34
36
background-color: #deecf9;
35
37
}
36
38
```
37
39
38
-
In this example, the **e-summaryrow** class represents the summary row containing aggregate cells, and the **e-summarycell**class targets individual aggregate cells within the summary row. You can modify the `background-color` property to change the `color` of the aggregate cell elements.
40
+
Properties such as **background-color**, **color**, and **text-align** can be adjusted to improve clarity and interaction.
0 commit comments