Skip to main content

XRDesignFieldList.SortOrder Property

Specifies the sorting order of the Field List nodes.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v24.2.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

Declaration

[DefaultValue(SortOrder.Ascending)]
public SortOrder SortOrder { get; set; }

Property Value

Type Default Description
SortOrder Ascending

A SortOrder enumeration value.

Remarks

Use the XRDesignFieldList.ShowComplexProperties and SortOrder properties, to order nodes in a Field List.

Example

This code illustrates how you can access the properties of the XRDesignFieldList class to customize the Field List.

using System;
using System.Windows.Forms;
using DevExpress.XtraBars.Docking;
using DevExpress.XtraReports.UserDesigner;
// ...

private void button1_Click(object sender, EventArgs e) {
    // Create an End-User Designer form.
    XRDesignForm designForm = new XRDesignForm();

    // Customize the Field List panel.
    FieldListDockPanel fieldList =
        (FieldListDockPanel)designForm.DesignDockManager[DesignDockPanelType.FieldList];
    fieldList.ShowNodeToolTips = false;
    fieldList.ShowParametersNode = false;

    // Access the properties of the XRDesignFieldList class.
    FieldListDockPanel fieldList = (FieldListDockPanel)designForm.DesignDockManager[DesignDockPanelType.FieldList];
    XRDesignFieldList myFieldList = (XRDesignFieldList)fieldList.DesignControl;
    myFieldList.SortOrder = SortOrder.Descending;
    myFieldList.ShowComplexProperties = DevExpress.XtraReports.Design.ShowComplexProperties.Last;

    // Open a new blank report.
    designForm.OpenReport(new XtraReport1());

    // Show the End-User Designer form.
    designForm.ShowDialog();
}
See Also