Back to Devexpress

CrossTabGroupFieldBase.SortOrder Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-crosstabgroupfieldbase-070e8501.md

latest2.6 KB
Original Source

CrossTabGroupFieldBase.SortOrder Property

Specifies the field’s sort order.

Namespace : DevExpress.XtraReports.UI.CrossTab

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(XRColumnSortOrder.Ascending)]
[SRCategory(ReportStringId.CatData)]
public XRColumnSortOrder SortOrder { get; set; }
vb
<DefaultValue(XRColumnSortOrder.Ascending)>
<SRCategory(ReportStringId.CatData)>
Public Property SortOrder As XRColumnSortOrder

Property Value

TypeDefaultDescription
XRColumnSortOrderAscending

The sort order.

|

Available values:

NameDescription
None

The column is not sorted.

| | Ascending |

The column is sorted in ascending order.

| | Descending |

The column is sorted in descending order.

|

Remarks

The Cross Tab displays row and column field values in ascending order. Use the SortOrder property to change the current sort order. Set this property to None if records in the Cross Tab’s data source have a strict order and you want to preserve it.

To access this property at design time, select a cell bound to the corresponding data field and click its smart tag. Alternatively, you can set this property in the Properties window.

SortOrder = Ascending

SortOrder = Descending

SortOrder = None

You can also use the SortBySummaryInfo property to arrange field values based on summary values.

See Also

CrossTabGroupFieldBase Class

CrossTabGroupFieldBase Members

DevExpress.XtraReports.UI.CrossTab Namespace