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
60
Invalid operation while expanding a RecordAutomationPeer
posted

I am trying to perform testing against a XamDataGrid via AutomationPeers.  My datasource is grouped, with each group having child records.  However, when I try to expand the band using the IExpandCollapseProvider of the RecordAutomationPeer, I get an InvalidOperationException().  It seems the peer is reporting the ExpandCollapseState of the group band as "LeafNode" but it should be "Collapsed" as the band is collapsed and it does have child records.

Can someone please confirm this is a bug and let me know if there are any workarounds using AutomationPeer?  For various reasons, I don't want to operate directly against the control.

Thanks.

Brian

Parents Reply Children
No Data