WPF Datagrid Group Expander
You are adding two different GroupStyle to the GroupStyle property:<DataGrid.GroupStyle><GroupStyle><!-- 1 --><GroupStyle.HeaderTemplate><DataTemplate><StackPanel...
View ArticleWPF Datagrid Group Expander
Thanks for the reply, Magnus.See here for the relevant code: http://1drv.ms/1Ch4n9r
View ArticleWPF Datagrid Group Expander
Yes, it should work if you just set the DataGrid.GroupStyle property to your GroupStyle:public Window1() { InitializeComponent(); this.DataContext = this; this.Loaded += Window1_Loaded; } void...
View ArticleWPF Datagrid Group Expander
The grouping is done in the ViewModelprivate void FilterJobs() { var jobsView = CollectionViewSource.GetDefaultView(Jobs) as ListCollectionView; if (jobsView == null) return; if (jobsView.CanSort) {...
View ArticleWPF Datagrid Group Expander
How do you group the items? If you use a CollectionViewSource to do the grouping in the view, the following sample XAML markup should work:<Window.Resources><CollectionViewSource x:Key="cvs"...
View ArticleWPF Datagrid Group Expander
Hi,I have my Datagrid which is bound to an ObservableCollection of items called 'Jobs' (I am using the MVVM coding pattern).I have one grouping property applied in the ViewModel, which groups by...
View Article
More Pages to Explore .....