I have an object of type BindingList<MyObject> and MyObject is composed of:
class MyObject{ public string Name { get; set; } public BindingList<MyObject> MyObjects { get; set; }}
I have bind my object to a XamDataGrid but this happens in the result
XamDataGrid shows me an unnecessary scroll bar. I discovered that to solve this problem, just insert this instruction "if (e.Record! = Null & &! E.Record.HasChildren) e.Record.ExpansionIndicatorVisibility = Visibility.Hidden" in event InitializeRecord of XamDataGrid. My question is, this behavior is not a bug?
Hello Matteo,
This looks like an issue. I can reproduce this only when I expand, collapse and then expand again the record. Can you confirm that or the scrollbar appears as soon as the grid load?
I am going to create a support case on your behalf and continue this discussion there.
Regards,
Alex
Yes, I confirm this behavior. You must expand, collapse and then expand again.
Thanks for replyMatteo