SortColumn

Class SortColumn

This attribute can be used in the Sort to define the columns by which the data will be sorted.

Inheritance
SortColumn
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public sealed class SortColumn : Attribute

Constructors

SortColumn()

Declaration
    public SortColumn()

SortColumn(int)

Declaration
    public SortColumn(int priority)
Parameters
TypeNameDescription
intpriority

SortColumn(int, SortOrder)

Declaration
    public SortColumn(int priority, SortOrder sortOrder)
Parameters
TypeNameDescription
intpriority
SortOrdersortOrder

Properties

Priority

The priority of the column in the sorting - the smaller the number, the higher the priority.

Declaration
    public int Priority { get; set; }
Property Value
TypeDescription
int

PropertyName

Property name by which data will be sorted - also assign a priority value to set up the order of the columns, and a sort order (ascending or descending).

Declaration
    public string PropertyName { get; set; }
Property Value
TypeDescription
string

SortOrder

Declaration
    public SortOrder SortOrder { get; set; }
Property Value
TypeDescription
SortOrder