Change in ItemSource changes the layout of DataGrid

Nov 11, 2008 at 7:53 AM
When I change the ItemsSource on the DataGrid the layout of DataGrid changes. Instead of sizing to Content/Parent, DataGrid just trims the content without any scroll lines when I uncomment the second item in the composite collection below. I believe it is a mistake somewhere








<CollectionContainer Collection="{Binding Source={StaticResource ResultsDetailedView}}"/>



<!--<engine:Result ResultsCollection="{StaticResource ResultsAggregator}"/>-->