Hi Jai,
Thank you for your reply. This sample works actually by reselecting all the elements within a group when the group is expanding, but what I need instead is for a group not to lose any selection when the group is collapsed and re-opened.
So imagine I have group A with 3 records inside it: if I select record 1 and 3, when I collapse and re-open that group, I want record 1-3 to be still selected (and the SelectedItems collection should not change when group A collapses). In other words, collapsing a group should not modify current record selection.
I hope this is clear.
Many thanks
Pierre