Hello guys,
I've rebuilded the First Look Example with ChildTemplate, foto... etc.
Now my problem ist, that whenever I group by a column by dragging it into the header, only the first and the last record's childtemplate show up, when clicking the plus (+). When I click the plus of other records, the plus only changes to a minus and nothing happens. But when I cancel grouping this records, the record's childTemplates are expanded and shown. It looks like they are expanded in the background but cannot be shown in the grouped grid.
I'm using following methods seen in one of your examples. The first I'm using to have default collapsed grouping and the second to change selected row on first click (needs your sample class DependencyObjectExtensions.cs).
Is possibly here something going wrong?
Any help would be appreciated
I've rebuilded the First Look Example with ChildTemplate, foto... etc.
Now my problem ist, that whenever I group by a column by dragging it into the header, only the first and the last record's childtemplate show up, when clicking the plus (+). When I click the plus of other records, the plus only changes to a minus and nothing happens. But when I cancel grouping this records, the record's childTemplates are expanded and shown. It looks like they are expanded in the background but cannot be shown in the grouped grid.
I'm using following methods seen in one of your examples. The first I'm using to have default collapsed grouping and the second to change selected row on first click (needs your sample class DependencyObjectExtensions.cs).
private void GridViewGroupRow_Loaded(object sender, RoutedEventArgs args) { GridViewGroupRow groupRow = (GridViewGroupRow)args.OriginalSource; groupRow.IsExpanded = false; } private void HeaderButton_Click(object sender, RoutedEventArgs e) { FrameworkElement element = (FrameworkElement)sender; var row = element.GetVisualParent<GridViewRow>(); row.IsSelected = true; } |
Is possibly here something going wrong?
Any help would be appreciated