Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
Width of 1st column in horicontal grid
posted

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

  • 22015
    posted

    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.

     

     

    HorizontalXamDataGrid.zip