Skip to main content

DataSetBase

Definition

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

It servers as the base class for all DataSet types. It holds properties which are common to all types of DataSets.

public class DataSetBase

Properties

NameDefinition
SheetNameThe Sheet in which Dataset would be present
HeaderThe header for the DataSet
FooterThe footer for the DataSet
DatasetStyleStyle properties for the DataSet
PageBreakBool property to ensure the DataSet starts from a new page in PDF
FitToPageBool property to stop wrapping of data into pages in PDF
HeaderMergeCellCountNumber of cells to be merged to display the Header in Excel
FooterMergeCellCountNumber of cells to be merged to display the Footer in Excel
DataSetGapAdds additional blank lines above the dataset. To create desired gap between two tables.
CellDisplayTypeTo pass cell level DisplayType

Structure

public class DataSetBase
{
public string? SheetName { get; set; }
public string? Header { get; set; }
public string? Footer { get; set; }
public DatasetStyle? DatasetStyle { get; set; }
public bool PageBreak { get; set; } = false;
public bool FitToPage { get; set; } = false;
public int HeaderMergeCellCount { get; set; } = 2;
public int FooterMergeCellCount { get; set; } = 2;
public int DataSetGap { get; set; }
public Dictionary<(int, int), DisplayType>? CellDisplayType { get; set; }
}

Edit on GitHub