Hello,
i have a xamdatagrid with recordorientation set to horicontal. In this case the first column will display the labels of the fields. I am allfready using a LabelPresenter but with or without the label presenter i have the problem that the names in the first column are not completely visible. I found i can set the width of the first column with FieldSettings.LabelWidth but maybe there's more:
Q1: (How) can i auto adjust the size of the first column depending om the displayed content? (maybe I'm missing something like FieldSettings.HoricontalLabelContentAllignment=Stretch)
Q2: (How) can i let the user resize the first column? (i think FieldSettings.AllowResize should also allow horicontal resize. currently there seems only vertical resize to be implemented)
Thanks and regards,
kmb
Hello KarlMichael,
Thank you for your post. I have been looking into it and have created a small sample for you, named HorizontalXamDataGrid. In it I set a style for the HeaderPresenter and change the width of the label column from there.
For your second requirement I can suggest to set the DataRecordSizingMode to IndividuallySizable. This way you would be able to resize your record both ways – horizontally and vertically. You can see this behavior implemented in the sample.
Please refer to the attached sample and feel free to let me know if you have any further questions on the mater.
ok your answer is close but not exactly what i requested.
1. I know how i can set the width of the column now but i still lack of a solution to auto size the column. DataRecordSizingMode="SizedToContent seems not to affect the width of the first column.
2. Same to the user-resizing. DataRecordSizingMode="IndiviuallySizeable" allows to change the height of the column but the width is not changeable.
Maybe we have a version problem? i'm currently still using wpf4.12.1
Kind regards,
I have been investigating your issue. After the investigation I can say that the xamDataGrid currently does not support functionality for resizing the HeaderPresenter(the first column of the grid). If the grid’s orientation property is set to horizontal, you can resize the column horizontally. In order to be able in future to use the behavior you have described 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 PI12110056.
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: dsmanager@infragistics.com
Thank you for your request.
Hi,
I am replying to see if the above mentioned feature has been implemented in 14.1/14.2 yet? We are after the same ability to manual resize the 1st column (header column) horizontally in horizontal grid.
Thanks,
Stephen
FYI I created a case for this request: CAS-154041-D9N1B4