Skip to main content

SummaryItemBase.Alignment Property

Gets or sets the horizontal alignment within the Fixed Summary Panel. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public GridSummaryItemAlignment Alignment { get; set; }

Property Value

Type Description
GridSummaryItemAlignment

A GridSummaryItemAlignment enumeration value that specifies the summary item’s horizontal alignment within the Fixed Summary Panel.

Available values:

Name Description
Default

A summary is displayed within the Summary Panel.

Left

A summary is displayed within the Fixed Summary Panel and aligned to the left.

Right

A summary is displayed within the Fixed Summary Panel and aligned to the right.

Remarks

Total summaries can be displayed within the Summary Panel and Fixed Summary Panel. Summaries displayed within the Fixed Summary Panel are not horizontally scrolled. They are always visible onscreen, regardless of the corresponding column’s position and visibility.

Data Grid - Total Summary Panels

If the Alignment property is set to GridSummaryItemAlignment.Default, the total summary is displayed within the Summary Panel. To display the total summary within the Fixed Summary Panel, align it to the Left or Right using the Alignment property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Alignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also