Class SortColumn
This attribute can be used in the Sort to define the columns by which the data will be sorted.
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class SortColumn : AttributeConstructors
SortColumn()
Declaration
public SortColumn()SortColumn(int)
Declaration
public SortColumn(int priority)Parameters
| Type | Name | Description |
|---|---|---|
| int | priority |
SortColumn(int, SortOrder)
Declaration
public SortColumn(int priority, SortOrder sortOrder)Parameters
| Type | Name | Description |
|---|---|---|
| int | priority | |
| SortOrder | sortOrder |
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
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| string |
SortOrder
Declaration
public SortOrder SortOrder { get; set; }Property Value
| Type | Description |
|---|---|
| SortOrder |