Skip to content

SortOrderAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Sets the column as sorted by default, and its index among sorted columns. Negative values mean descending sort. Applies only to columns.

[AttributeUsage(AttributeTargets.All)]
public class SortOrderAttribute : Attribute
parameter description
sortOrder The sort order.

Public Members

name description
SortOrderAttribute(…) Sets the column as sorted by default, and its index among sorted columns. Negative values mean descending sort. Applies only to columns. (2 constructors)
Descending { get; } Gets a value indicating whether sort is descending.
SortOrder { get; } Gets the sort order.

Remarks

Initializes a new instance of the SortOrderAttribute class.

See Also