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 be exported to Excel. You can customize its exporting operation by using `DataGridChildExcelExportingEventArgs`.
1058
+
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
1060
## Excluding DetailsViewDataGrid while exporting
1061
-
You can exclude particular DetailsViewDataGrid while exporting, by using the DataGridChildExcelExportingEventArgs and `DataGridChildExcelExportingEventArgs.Cancel`.
1061
+
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.
1091
1093
1092
1094
## Customizing DetailsViewDataGrid cells
1093
-
Like parent DataGrid, You can customize the DetailsViewDataGrid cells also by using [DataGridCellExcelExportingEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridCellExcelExportingEventArgs.html).
1095
+
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.
Copy file name to clipboardExpand all lines: MAUI/DataGrid/export-to-pdf.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1183,10 +1183,13 @@ Here, first record only expanded in SfDataGrid. But all the DetailsViewDataGrid
1183
1183
1184
1184
You can customize its exporting operation by using `DataGridChildPdfExportingEventArgs`.
1185
1185
1186
+
N> While exporting DetailsViewDataGrid, `CanFitAllColumnInOnePage` is set to true internally as horizontal pagination is not supported for DetailsViewDataGrid.
1187
+
1186
1188
By default, [DetailsViewDataGrid](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.DetailsViewDataGrid.html) will be exported to PDF. You can customize its exporting operation by using `DataGridChildPdfExportingEventArgs`.
1187
1189
1188
1190
## Excluding DetailsViewDataGrid while exporting
1189
-
You can exclude particular DetailsViewDataGrid while exporting, by using the DataGridChildExcelExportingEventArgs and `DataGridChildPdfExportingEventArgs.Cancel`.
1191
+
1192
+
You can exclude particular DetailsViewDataGrid while exporting, by using the `DataGridChildPdfExportingEventArgs.Cancel`.
<imgalt="Excluding specific DetailsView while exporting to Excel in DataGrid "src="Images\export-to-excel\maui-datagrid-detailsviewexporting.png"Width="404"/>
1217
+
<imgalt="Excluding specific DetailsView while exporting to PDF in DataGrid "src="Images/export-to-pdf/maui-datagrid-excluderows.png"Width="404"/>
1215
1218
1216
1219
Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID as 1002.
1217
1220
1218
1221
## Customizing DetailsViewDataGrid cells
1219
-
Like parent DataGrid, you can customize the DetailsViewDataGrid cells also by using [DataGridCellPdfExportingEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridCellPdfExportingEventArgs.html).Based on `DataGridCellPdfExportingEventArgs.DetailsViewDefinition` property, you can identify the particular DetailsViewDataGrid and customize it.
1222
+
1223
+
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.
if (e.DetailsViewDefinition==null&&e.DetailsViewDefinition?.RelationalColumn!="OrdersList")
1240
1244
{
@@ -1250,6 +1254,4 @@ Like parent DataGrid, you can customize the DetailsViewDataGrid cells also by us
1250
1254
}
1251
1255
}
1252
1256
```
1253
-
<imgalt="Customizing DetailsViewDataGrid while exporting to PDF in DataGrid"src="Images\export-to-pdf\maui-datagrid-customize-detailsview.png"Width="404"/>
1254
-
1255
-
1257
+
<imgalt="Customizing DetailsViewDataGrid while exporting to PDF in DataGrid"src="Images/export-to-pdf/maui-datagrid-customize-detailsview.png"Width="404"/>
0 commit comments