Skip to content

SyncfusionExamples/How-to-export-DetailsView-records-in-expanded-state-from-WPF-DataGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

How to export DetailsView records in expanded state from WPF DataGrid

You can export WPF DataGrid (SfDataGrid) to excel and it is possible to process the exported excel file using XlsIO. For example, you can expand the details view records in exported excel file alone by calling Range.ExpandGroup method for worksheet.

ExcelExportingOptions exportoption = new ExcelExportingOptions();
var excelengine = datagrid.ExportToExcel(datagrid.View, exportoption);
var workbook = excelengine.Excel.Workbooks[0];
workbook.Worksheets[0].Range.ExpandGroup(ExcelGroupBy.ByRows, ExpandCollapseFlags.IncludeSubgroups);

In the below screen shot, DetailsView DataGrid expanded only in excel file and not in SfDataGrid.

Screenshot shown in DetailsView Expanded state

About

How to export DetailsView records in expanded state from WPF DataGrid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages