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
By default, [DetailsViewDataGrid](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DetailsViewDataGrid.html) will not be exported to Excel. You can export `DetailsViewDataGrid` by setting `CanExportDetailsView` property as true. You can customize its exporting operation by using `DataGridChildExcelExportingEventArgs`.
1059
1059
1060
-
## Excluding DetailsViewDataGrid while exporting
1060
+
###Excluding DetailsViewDataGrid while exporting
1061
1061
1062
1062
You can exclude particular DetailsViewDataGrid while exporting by using the `DataGridChildExcelExportingEventArgs.Cancel` property.
Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID as 1002.
1093
1093
1094
-
## Customizing DetailsViewDataGrid cells
1094
+
###Customizing DetailsViewDataGrid cells
1095
1095
1096
1096
Similar to the parent DataGrid, you can also customize the cells of the DetailsViewDataGrid using the [DataGridCellExcelExportingEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridCellExcelExportingEventArgs.html). By utilizing the `DataGridCellExcelExportingEventArgs.DetailsViewDefinition` property, you can identify the specific DetailsViewDataGrid and make your customizations.
<imgalt="Export DataGrid to PDF format with customized cell style"src="Images\export-to-pdf\maui-datagrid-style-based-on-column-name.png"width="689"/>
1148
1148
1149
-
###Exporting DetailsView
1149
+
## Exporting DetailsView
1150
1150
1151
1151
By default, [DetailsViewDataGrid](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DetailsViewDataGrid.html) will not be exported to PDF. You can export `DetailsViewDataGrid` by setting `CanExportDetailsView` property as true.
<imgsrc="Images/export-to-pdf/maui-datagrid-exportdetailsview.png"alt="Maui DataGrid displays Nested dataGrid exported to PDF"width="404"/>
1164
+
<imgsrc="Images\export-to-pdf\maui-datagrid-exportdetailsview.png"alt="Maui DataGrid displays Nested dataGrid exported to PDF"width="404"/>
1165
1165
1166
1166
By default, only expanded DetailsViewDataGrids will be exported to the PDF document. If you want to export all the DetailsViewDataGrids, you need to set `CanExportAllDetails` to true.
1167
1167
@@ -1185,7 +1185,7 @@ You can customize its exporting operation by using `DataGridChildPdfExportingEve
1185
1185
1186
1186
N> While exporting DetailsViewDataGrid, `CanFitAllColumnInOnePage` is set to true internally as horizontal pagination is not supported for DetailsViewDataGrid.
1187
1187
1188
-
## Excluding DetailsViewDataGrid while exporting
1188
+
###Excluding DetailsViewDataGrid while exporting
1189
1189
1190
1190
You can exclude particular DetailsViewDataGrid while exporting, by using the `DataGridChildPdfExportingEventArgs.Cancel`.
Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID as 1002.
1218
1218
1219
-
## Customizing DetailsViewDataGrid cells
1219
+
###Customizing DetailsViewDataGrid cells
1220
1220
1221
1221
Similar to the parent DataGrid, you can also customize the cells of the DetailsViewDataGrid by using the DataGridCellPdfExportingEventArgs. By utilizing the `DataGridCellPdfExportingEventArgs.DetailsViewDefinition` property, you can identify the specific DetailsViewDataGrid and customize it accordingly.
0 commit comments