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
Name | Definition |
---|---|
HierarchyObjects | Represents an enumerable collection of HierarchyReportItem<object> for data storage. |
Metadata | Represents an enumerable collection of PropertyMetadata objects for storing metadata. |
ReportItemHeader | Name of the first column of Hierarchy Table |
ReportItemColumnWidth | Width of the 1st column of Hierarchy Table |
ReportItemTextAlign | Alignment properties for the vales in 1st column of Hierarchy Table |
HideTableHeader | To hide the header of the table |
TableHeader | To create multi-level header for the table |
EmptyRichHeaderBackgroundColor | Represents 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.