Skip to main content

HierarchyDataSet

Definition

Namespace: Surya.Ab.Export.Client.Models
Assembly: Surya.Ab.Export.dll

It streamlines the process of data export by enabling users to create instance of HierarchyDataSet that can be directly passed to IExporter using a list of DataSetBase.

public class HierarhcyDataSet : DataSetBase

Inheritance DataSetBase -> HierarchyDataSet

Properties

NameDefinition
HierarchyObjectsRepresents an enumerable collection of HierarchyReportItem<object> for data storage.
MetadataRepresents an enumerable collection of PropertyMetadata objects for storing metadata.
ReportItemHeaderName of the first column of Hierarchy Table
ReportItemColumnWidthWidth of the 1st column of Hierarchy Table
ReportItemTextAlignAlignment properties for the vales in 1st column of Hierarchy Table
HideTableHeaderTo hide the header of the table
TableHeaderTo create multi-level header for the table
EmptyRichHeaderBackgroundColorRepresents the background color of an empty in multi-level header

Constructors

Constructor with two overloads for creating the instance of HierarchyDataSet

First Structure

public HierarchyDataSet(
DataTable dataTable,
Dictionary<string, string>? columnMapping)
{
}

This constructor allows creating an HierarchyDataSet instance from from a DataTable object and ColumnMapping along with optional Metadata, SheetName, ReportItemHeader, Header, Footer, DatasetStyle, PageBreak.

Second Structure

public HierarchyDataSet(IEnumerable<HierarchyReportItem<object>> typedObjects)
{
}

This constructor allows creating an HierarchyDataSet instance from a data comes an enumerable collection of HierarchyReportItem of typed objects, along with optional Metadata, SheetName, ReportItemHeader, Header, Footer, DatasetStyle, PageBreak.


Edit on GitHub