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
85
Expand group and scroll to selected item
posted

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.