Skip to content

SyncfusionExamples/export-data-from-collections-to-excel-and-group-it-in-c-sharp

Repository files navigation

Export Data from Collections to Excel and Group It in C#

This sample demonstrates how to export data from .NET collections to an Excel workbook and group the data programmatically using C# and Syncfusion XlsIO. It is a practical example for generating structured, well-organized Excel reports without relying on Microsoft Excel.

What this sample shows

  • Creates custom business objects stored in .NET collections
  • Exports collection data to an Excel worksheet
  • Groups rows based on specific fields
  • Applies Excel outline levels for collapsible grouping
  • Saves the Excel file efficiently using XlsIO

Prerequisites

  • .NET Framework / .NET
  • Syncfusion XlsIO NuGet package

Use cases

  • Creating grouped Excel reports from in‑memory data
  • Automating report generation for analytics and finance
  • Structuring large datasets for better readability

This project serves as a concise reference for developers looking to transform collection-based data into grouped, professional Excel reports using C#.

About

This repository contains Syncfusion Excel library example that illustrates how to import data from collections or nested collections to Excel worksheet and group them in C#. This works without Microsoft Excel Interop.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages