Skip to content

Commit 78e7c99

Browse files
Merge pull request #3636 from syncfusion-content/exporting_api_links
Added API links for MasterDetailsView Exporting to Excel and PDF.
2 parents f1ef03c + 943a786 commit 78e7c99

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

MAUI/DataGrid/export-to-excel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ private void ExcelExport_RowExporting(object sender, DataGridRowExcelExportingEv
10551055

10561056
## Exporting DetailsView
10571057

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`.
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](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridExcelExportingOption.html#Syncfusion_Maui_DataGrid_Exporting_DataGridExcelExportingOption_CanExportDetailsView) property as true. You can customize its exporting operation by using [DataGridChildExcelExportingEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridChildExcelExportingEventArgs.html).
10591059

10601060
### Excluding DetailsViewDataGrid while exporting
10611061

@@ -1093,7 +1093,7 @@ Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID
10931093

10941094
### Customizing DetailsViewDataGrid cells
10951095

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.
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](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridCellExcelExportingEventArgs.html#Syncfusion_Maui_DataGrid_Exporting_DataGridCellExcelExportingEventArgs_DetailsViewDefinition) property, you can identify the specific DetailsViewDataGrid and make your customizations.
10971097

10981098
```csharp
10991099
private void Button_Clicked_1(object sender, EventArgs e)

MAUI/DataGrid/export-to-pdf.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ private void PdfExport_CellExporting(object sender, DataGridCellPdfExportingEven
11481148

11491149
## Exporting DetailsView
11501150

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.
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](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridPdfExportingOption.html#Syncfusion_Maui_DataGrid_Exporting_DataGridPdfExportingOption_CanExportDetailsView) property as true.
11521152

11531153
```csharp
11541154
MemoryStream stream = new MemoryStream();
@@ -1163,7 +1163,7 @@ saveService.SaveAndView("ExportFeature.pdf", "application/pdf", stream);
11631163
```
11641164
<img src="Images\export-to-pdf\maui-datagrid-exportdetailsview.png" alt="Maui DataGrid displays Nested dataGrid exported to PDF" width="404"/>
11651165

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.
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](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridPdfExportingOption.html#Syncfusion_Maui_DataGrid_Exporting_DataGridPdfExportingOption_CanExportAllDetails) to true.
11671167

11681168
```csharp
11691169
MemoryStream stream = new MemoryStream();
@@ -1181,9 +1181,9 @@ saveService.SaveAndView("ExportFeature.pdf", "application/pdf", stream);
11811181

11821182
Here, first record only expanded in SfDataGrid. But all the DetailsViewDataGrid’s are shown in exported PDF document.
11831183

1184-
You can customize its exporting operation by using `DataGridChildPdfExportingEventArgs`.
1184+
You can customize its exporting operation by using [DataGridChildPdfExportingEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridChildPdfExportingEventArgs.html).
11851185

1186-
N> While exporting DetailsViewDataGrid, `CanFitAllColumnInOnePage` is set to true internally as horizontal pagination is not supported for DetailsViewDataGrid.
1186+
N> While exporting DetailsViewDataGrid, [CanFitAllColumnInOnePage](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridPdfExportingOption.html#Syncfusion_Maui_DataGrid_Exporting_DataGridPdfExportingOption_CanFitAllColumnsInOnePage) is set to true internally as horizontal pagination is not supported for DetailsViewDataGrid.
11871187

11881188
### Excluding DetailsViewDataGrid while exporting
11891189

@@ -1218,7 +1218,7 @@ Here, `DetailsViewDataGrid` is not exported for the parent record having OrderID
12181218

12191219
### Customizing DetailsViewDataGrid cells
12201220

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.
1221+
Similar to the parent DataGrid, you can also customize the cells of the DetailsViewDataGrid by using the DataGridCellPdfExportingEventArgs. By utilizing the [DataGridCellPdfExportingEventArgs.DetailsViewDefinition](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.Exporting.DataGridCellPdfExportingEventArgs.html#Syncfusion_Maui_DataGrid_Exporting_DataGridCellPdfExportingEventArgs_DetailsViewDefinition) property, you can identify the specific DetailsViewDataGrid and customize it accordingly.
12221222

12231223
```csharp
12241224
private void Button_Clicked_1(object sender, EventArgs e)

0 commit comments

Comments
 (0)