I have a grouped XamDataGrid that is binded to ICollectionView.
<igDP:XamDataGrid x:Name="dataGridExt" IsSynchronizedWithCurrentItem="True" DataSource="{Binding GroupedItems}" ScrollingMode="DeferredWithScrollTips" GroupByAreaLocation="None" > .. </igDP:XamDataGrid>
public ICollectionView GroupedItems { get { return _groupedItems; } }
The DataSource updates on button click. So, I need to keep SelectedItem is visible. For e.g., if I expand group and select arbitrary row, I need to keep that row visible after next refresh. By default I get collapsed group after each refresh.
Hello Andrew,
Thank you for your post. I have been looking into it and I can say that if you want to bring a particular Record in view you can use the XamDataGrid’s BringRecordIntoView method. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hello Stefan,
Thank you for the quick response.
I solved the problem another way. Instead of recreating a whole view collection that bound to XamGrid I decided to substitute each element, so the collection of views doesn't recreates and the grid stays unaffected.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.