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
Matteo,
I suppose this is because the field is a collection.
xamDataGrid1.FieldLayoutSettings.ExpansionIndicatorDisplayMode = Infragistics.Windows.DataPresenter.ExpansionIndicatorDisplayMode.CheckOnDisplay;
Yes, it seems that it works.