Hello
When displaying an xamDataGrid field with all numeric values (gridField.DataType = numeric data type such as Integer), may I make the text right aligned?
Similarly, may I make the text left aligned if DataType is String?
Thanks
Thanks for your reply.
Hello,
You can achieve this by setting the HorizontalContentAlighnment property of the underlying editor. For strings, the XamDataGrid will use a XamTextEditor and for integer XamNumericEditor. Here is an example for a style of right aligned text field :
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="HorizontalContentAlignment" Value="Right" />
</Style>