Skip to content

Commit 83f7241

Browse files
Merge pull request #3584 from syncfusion-content/Export_DetailsView
MasterDetailsView Exporting Staging Review Corrections
2 parents 103b423 + 05d0537 commit 83f7241

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
-1.71 KB
Loading

MAUI/DataGrid/export-to-excel.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,11 +1053,11 @@ private void ExcelExport_RowExporting(object sender, DataGridRowExcelExportingEv
10531053
{% endhighlight %}
10541054
{% endtabs %}
10551055

1056-
### Exporting DetailsView
1056+
## Exporting DetailsView
10571057

10581058
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`.
10591059

1060-
## Excluding DetailsViewDataGrid while exporting
1060+
### Excluding DetailsViewDataGrid while exporting
10611061

10621062
You can exclude particular DetailsViewDataGrid while exporting by using the `DataGridChildExcelExportingEventArgs.Cancel` property.
10631063

@@ -1091,7 +1091,7 @@ private void ExcelExport_DataGridChildExcelExporting(object? sender, DataGridChi
10911091

10921092
Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID as 1002.
10931093

1094-
## Customizing DetailsViewDataGrid cells
1094+
### Customizing DetailsViewDataGrid cells
10951095

10961096
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.
10971097

MAUI/DataGrid/export-to-pdf.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ private void PdfExport_CellExporting(object sender, DataGridCellPdfExportingEven
11461146

11471147
<img alt="Export DataGrid to PDF format with customized cell style" src="Images\export-to-pdf\maui-datagrid-style-based-on-column-name.png" width="689"/>
11481148

1149-
### Exporting DetailsView
1149+
## Exporting DetailsView
11501150

11511151
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.
11521152

@@ -1161,7 +1161,7 @@ pdfDoc.Close(true);
11611161
SaveService saveService = new();
11621162
saveService.SaveAndView("ExportFeature.pdf", "application/pdf", stream);
11631163
```
1164-
<img src="Images/export-to-pdf/maui-datagrid-exportdetailsview.png" alt="Maui DataGrid displays Nested dataGrid exported to PDF" width="404"/>
1164+
<img src="Images\export-to-pdf\maui-datagrid-exportdetailsview.png" alt="Maui DataGrid displays Nested dataGrid exported to PDF" width="404"/>
11651165

11661166
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.
11671167

@@ -1185,7 +1185,7 @@ You can customize its exporting operation by using `DataGridChildPdfExportingEve
11851185

11861186
N> While exporting DetailsViewDataGrid, `CanFitAllColumnInOnePage` is set to true internally as horizontal pagination is not supported for DetailsViewDataGrid.
11871187

1188-
## Excluding DetailsViewDataGrid while exporting
1188+
### Excluding DetailsViewDataGrid while exporting
11891189

11901190
You can exclude particular DetailsViewDataGrid while exporting, by using the `DataGridChildPdfExportingEventArgs.Cancel`.
11911191

@@ -1216,7 +1216,7 @@ private void PdfExport_DataGridChildPdfExporting(object? sender, DataGridChildPd
12161216

12171217
Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID as 1002.
12181218

1219-
## Customizing DetailsViewDataGrid cells
1219+
### Customizing DetailsViewDataGrid cells
12201220

12211221
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.
12221222

0 commit comments

Comments
 (0)