Hi Sir/Madam,
I am now using the version 12.1.20121.2201 and trying to get columns of xamDataGrid aligned to left. And I did add the below to the resource:
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="LeftAlign"> <Setter Property="HorizontalContentAlignment" Value="Left" /> </Style>
It works great in normal case for igDP:UnboundField . However, if i specify the type DataType="{x:Type sys:Int64}", the alignment wont work.
I have a toogle button binded to "FieldSettings.AllowSummaries", and i have to add DataType="{x:Type sys:Int64}" to make allowSummaries work.
<igDP:UnboundField BindingPath="Value" DataType="{x:Type sys:Int64}" > <igDP:UnboundField.Settings> <igDP:FieldSettings CellValuePresenterStyle="{StaticResource LeftAlign}"/> </igDP:UnboundField.Settings> </igDP:UnboundField>
Can anyone please advice or make suggestion?
Hello Kennis,
Thank you for your post. I have been looking into it and I can suggest you create a Style for the XamNumericEditor and set its ContentAlignemnt to Left. After do this you can set the UnboundField’s FieldSettings’ EditorStyle to this Style. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.