Hello,
I need align content text of XamDataGrid to left. But when I try set HorizontalContentAlignment="left", numerical columns continue on right.
Can I align all columns content to left using a style?
I have attached a little sample.
Thanks
Thank you for your post. I have been looking into your question and the reason for the HorizontalContentAlignment property to not align the text is that the Context of the CellValuePresenter is actually the editor that they are using. In order to align the text in the editors I can suggest creating styles for the editors, for example the XamNumericEditor and set the HorizontalContentAlignment property. I have modified the sample application that you have attached, in order to show how you can implement this approach.
Please let me know if I can assist you with anything else.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi Krasimir,
Thanks for your help..
Your solution worked fine..
Thanks!!!
Thank you for your reply. I am very glad that the approach I have suggested was helpful for you. Please let me know it you need any further assistance on the matter.