Hi, I'm using a xamdatagrid in a wpf project. How do I change at runtime the alignment (vertical: top, middle, bottom - Horizontal: right, center, left) of text in the column headers? I also need to set a different alignment for each column.
I have been looking into your question you can change the text assignment in the label presenter in a filed lie e.g. :
this.myGrid.FieldLayouts.Fields.Settings.LabelTextAlignment = TextAlignment.Right;
If you need any further assistance on this matter, feel free to ask.
Thank you. In this way I can set the horizontal alignment, but for the vertical I can't find a corresponding property. How should I do?
After some research the functionality that you are looking for has been determined to be a new product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12090057.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: email@example.com
Thank you for your request.