I'm using the XamDataGrid to display some hierarchical data. I have defined 2 FieldLayouts for the grid in order to style the nested records differently (remove header etc.). The problem however is, that if I resize a column in the master-FieldLayout the width of the underlying rows isn't "updated".
I have been experimenting with using ValueConverters in order to get rid of the second FieldLayout, but that resulted in some other problems with hiding the headers.
Any thoughts on this issue?
Hello Christian,
I have been looking through the sample you have sent, and since the FieldLayouts synchronization is not a built – in functionality I tried to implement a custom one, but you have only two FieldLayouts defined and your data is recursive and it doesn’t seem to be a way to accomplish this. Although I attached a sample project, where the functionality you want is achieved, but there are FieldLayouts defined for each level of data.
Hope this helps you.
Thanks, that worked just fine!
I do have another question though.
In my application I use indentation for the nested rows. This indentation is removed when I resize a column.
I have attached a new solution that displays this feature.
Is it possible to "keep" the indentation of the rows, while aligning the rows?
This would basically mean, that the indentation should only affect the "blank" field/area to the left in a row.
I have been looking into your requirement and I modified the sample project for you with the functionality you want. Please let me know if this helps you or you need further clarifications on this matter.
Looking forward for your reply.
Hello Stefan
I read the post you referred to and tried the sample-project. I found it quite hard to "transfer" it to my own project due to the amount of code in that project.
I have attached a much smaller project that demonstrates how I use the XamDataGrid. Is it possible for you to take a look at it and maybe try to implement the feature?
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.