How to Align Summary Cells in GridGroupingControl

3 Jan 2020 / 1 minute to read

You can align summary cells of GridGroupingControl by making use of Horizontal Alignment property, as shown below.

GridSummaryColumnDescriptor sumCol1 = new GridSummaryColumnDescriptor("sumCol1", SummaryType.DoubleAggregate, "Col1", "{Sum}");
sumCol1.Appearance.AnyCell.HorizontalAlignment = GridHorizontalAlignment.Right;
Dim sumCol1 As New GridSummaryColumnDescriptor("sumCol1", SummaryType.DoubleAggregate, "Col1", "{Sum}")
sumCol1.Appearance.AnyCell.HorizontalAlignment = GridHorizontalAlignment.Right