How to Align Summary Cells in WinForms GridGroupingControl
18 Nov 20181 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