Is there any way that I could hide summary row (i.e. because of binding to boolean property or binding to a collection)? Any help appriciated!
Yes it worked very well!
But in my case requirement was satisfied with simple manipulating SummaryDisplayArea property:
FieldSettings.SummaryDisplayArea = SummaryDisplayAreas.None
Thank you very much for your help!
Hello,
Did this approach work for you? Please let me know if you have further questions.
Thanks,
Before attempting a custom dependency property, I just want to check with you whether a more simplistic approach might work; namely to store the collection of SummaryDefinitions in a variable so it can be cleared from and restored to the FieldLayout as needed.
The attached sample demonstrates this approach. It works in this simple case with a single FieldLayout.
if (xamDataGrid1.FieldLayouts[0].SummaryDefinitions.Count > 0) { this.xamDataGrid1.FieldLayouts[0].SummaryDefinitions.Clear(); } else { foreach (SummaryDefinition def in SummColl) { this.xamDataGrid1.FieldLayouts[0].SummaryDefinitions.Add(def); } }
I am not sure if you can create a custom DependencyProperty for the SummaryDefinitions property in order to bind to it....or if that indeed is the best route to pursue. I will research this further and reply back here in the next couple of days when I have more information.
Hello cero,
Thank you for clarifying the situation. I have forwarded your post on to Developer Support. They should be able to provide you with the requested information.
Elizabeth AlbertLocalization Engineer