[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.SortBy

SortBy Class

Represents an element that defines an expression by which to sort the groups.

Inheritance
SortBy
Implements
Namespace: GrapeCity.ActiveReports.PageReportModel
Assembly: MESCIUS.ActiveReports.Core.Rdl.dll
Syntax
public sealed class SortBy : IValidateable
Examples

An example of creating a simple sorting:

var sortBy = new SortBy { SortExpression = { "=Fields!Type.Value" }, Direction = SortByDirection.Descending };

Constructors

Name Description
SortBy()

Initializes a new instance of the SortBy class.

SortBy(ExpressionInfo, SortByDirection)

Initializes a new instance of the SortBy class using a specified sort expression and direction.

Properties

Name Description
Direction

Gets or sets a direction of the sort.

SortExpression

Gets or sets an expression by which to sort the groups.

Methods

Name Description
Validate(ValidationContext)

Validates the current state of the SortBy object.

Extension Methods