I have a column of numbers for which I create a summary definition. The position of this summary is directly under the same column (SummaryPosition.UseSummaryPositionField). The problem is that the number column is right aligned but the summary cell itself - since it's a string - is left aligned.
This looks unprofessional. I would like the summary for this column to be right aligned. Is there a simple way of doing this?
It's 2017. Is there a way to right-align the summary cells without using a converter?
Infragistics.Windows.Datapresenter.SummaryDefinition.Position doesn't really help either.
I can't find KnownBoxes class under Infragistics.Windows.Helpers. Do u have another solution so I can use instead?
how can you right align with the content of the field?
I would recommend submitting a suggestion for adding a SummaryResult(s)PresenterStyle to the FieldSettings class. For now you could probably bind to the SummaryResult.SourceField's EditAsType and determine the alignment based on the data type.
e.g.
With the converter looking something like:
But... what if I don't want all the summaries right aligned? Only summaries for some specific fields?