Skip to content

Commit f2e0795

Browse files
Merge branch 'UG---Footer-Freeze' of https://github.com/syncfusion-content/maui-docs into UG---Footer-Freeze
2 parents a74bb85 + e926aca commit f2e0795

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
110 KB
Loading
62 KB
Loading

MAUI/DataGrid/freeze-panes.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ In the [Syncfusion® .NET MAUI DataGrid](https://help.syncfusion.com/cr/maui/Syn
1515
| Property name | Description |
1616
|---------------|-------------|
1717
| [FrozenRowCount](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_FrozenRowCount) | Sets the number of rows to freeze at the top of the DataGrid |
18+
| `FooterFrozenRowCount` | Sets the number of rows to freeze at the bottom (footer) of the DataGrid |
1819
| [FrozenColumnCount](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_FrozenColumnCount) | Sets the number of columns to freeze at the left side of the DataGrid |
20+
| `FooterFrozenColumnCount` | Sets the number of columns to freeze at the right side of the DataGrid |
1921

2022
To get start quickly with freeze rows and columns in .NET MAUI DataGrid, you can check on this video:
2123

@@ -37,9 +39,25 @@ The following code snippet shows how to freeze columns in the DataGrid:
3739

3840
![Freeze columns .NET MAUI DataGrid](Images\freeze-panes\maui-datagrid-freeze-columns.gif)
3941

42+
## Freeze footer columns
43+
44+
You can freeze footer columns in view, similar to Excel, by setting the `SfDataGrid.FooterFrozenColumnCount` property to a non‑negative value.
45+
46+
The following code snippet shows how to freeze footer columns in the DataGrid:
47+
48+
{% tabs %}
49+
{% highlight xaml %}
50+
<ContentPage xmlns:syncfusion="http://schemas.syncfusion.com/maui">
51+
<syncfusion:SfDataGrid ItemsSource="{Binding OrderInfoCollection}" FooterFrozenColumnCount="1" />
52+
</ContentPage>
53+
{% endhighlight %}
54+
{% endtabs %}
55+
56+
<img alt="maui-datagrid-freeze-footer-rows" src="Images\freeze-panes\maui-datagrid-freeze-footer-columns.gif" width="404" Height = "396"/>
57+
4058
### Limitations
4159

42-
* The `FrozenColumnCount` value should be less than the number of columns displayed in the view. For example, if you have 5 columns in the view, you can set the `FrozenColumnCount` value to a maximum of 4.
60+
* The `FrozenColumnCount` and `FooterFrozenColumnCount` value should be less than the number of columns displayed in the view. For example, if you have 5 columns in the view, you can set the `FrozenColumnCount` and `FooterFrozenColumnCount` value to a maximum of 4.
4361

4462
## Freeze rows
4563

@@ -57,9 +75,25 @@ The following code snippet shows how to freeze rows in the DataGrid:
5775

5876
![Freeze rows .NET MAUI DataGrid](Images\freeze-panes\maui-datagrid-freeze-rows.gif)
5977

78+
## Freeze footer rows
79+
80+
You can freeze footer rows in view, similar to Excel, by setting the `SfDataGrid.FooterFrozenRowCount` property to a non‑negative value.
81+
82+
The following code snippet shows how to freeze footer rows in the DataGrid:
83+
84+
{% tabs %}
85+
{% highlight xaml %}
86+
<ContentPage xmlns:syncfusion="http://schemas.syncfusion.com/maui">
87+
<syncfusion:SfDataGrid ItemsSource="{Binding OrderInfoCollection}" FooterFrozenRowCount="1" />
88+
</ContentPage>
89+
{% endhighlight %}
90+
{% endtabs %}
91+
92+
<img alt="maui-datagrid-freeze-footer-rows" src="Images\freeze-panes\maui-datagrid-freeze-footer-rows.gif" width="404" Height = "396"/>
93+
6094
### Limitations
6195

62-
* The `FrozenRowCount` value should be less than the number of rows displayed in the view. For example, if you have 10 rows in the view, you can set the `FrozenRowCount` value to a maximum of 9.
96+
* The `FrozenRowCount` and `FooterFrozenRowCount` value should be less than the number of rows displayed in the view. For example, if you have 10 rows in the view, you can set the `FrozenRowCount` and `FooterFrozenRowCount` value to a maximum of 9.
6397

6498
## Appearance
6599

0 commit comments

Comments
 (0)