-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataGrid virtualization broken when grouping activated #3040
Comments
@bplatypus I'll changes this in v2.0 |
I got a similar issue using Listview...virtualization does not work when i am using a collectionview aka grouping. I tried to adapt bplatypus override but somehow it is not really working.
Any idea? |
Hi, suddenly found that if u make grouping in xaml on DataGrid, then Virtualisation can be enabled by setting |
(GH-3040) Fix grouping virtualization for DataGrid (ItemsControls)
Hi,
Can someone explain me why MahApps has this trigger in MetroDataGrid style (Controls.DataGrid.xaml)?
<Style.Triggers> <Trigger Property="IsGrouping" Value="True"> <Setter Property="ScrollViewer.CanContentScroll" Value="False" /> </Trigger> </Style.Triggers>
This is breaking virtualization when grouping is activated. From framework 4.5 I think virtualization is supported with grouping! (that said it was not the case before)
But even with framework 4.0 (where virtualization is not working when grouping activated), I don't understand what this trigger is doing.
Thanks for any help.
For now I have a style which overrides this trigger:
<Style TargetType="{x:Type DataGrid}" BasedOn="{StaticResource MetroDataGrid}"> <Setter Property="ScrollViewer.CanContentScroll" Value="True" /> <Style.Triggers> <Trigger Property="IsGrouping" Value="True"> <Setter Property="ScrollViewer.CanContentScroll" Value="True" /> </Trigger> </Style.Triggers> </Style>
Environment
The text was updated successfully, but these errors were encountered: