The Extensible Application Markup Language (XAML) proxy of a CollectionView class.
Questions tagged [collectionviewsource]
377 questions
3
votes
1 answer
ColumnHeader sorting with a CollectionViewSource
I have a DataGrid that is data bound to a collection view source.
If I bind the DataGrid to a List I can automatically sort throught the columns of my DataGrid by clicking on the Column Header.
If bound to a CollectionViewSource the column…

quadroid
- 8,444
- 6
- 49
- 82
3
votes
2 answers
how to turn off (with a checkbox) WPF/MVVM DataGrid grouping that is implemented using CollectionViewSource?
I have working implementation of datagrid grouping. Below is what i do (GroupStyle with expander omitted):
…

char m
- 7,840
- 14
- 68
- 117
3
votes
1 answer
Item not changing group in a grouped listview
I have a listView in which I show a collection of Vehicles which are grouped by their MaintenanceState. If the MaintenanceState of the Vehicle updates I expect it to change group. The collection itself is correctly updated, however the view does not…

cherryorange
- 53
- 2
3
votes
1 answer
How is CollectionViewSource used in XAML?
Having the following XAML in my UserControl, I don't see anything in the ListBox:

dotNET
- 33,414
- 24
- 162
- 251
3
votes
2 answers
How to change WPF CollectionViewGroup type to custom type and use it in ListCollectionView
How can override the type of View property to my custom type.
My CustomGroupListCollectionView type adds extra property to the Groups property.
During runtime when i observe the type of View property is ListCollectionView, i want to change this to…

Alex David
- 585
- 1
- 11
- 32
3
votes
2 answers
How to correctly bind (update) a DataGrid with a CollectionViewSource
I have a (WPF) DataGrid where I attach an ICollectionView as
XAML:
Constructor (Code behind)
TodoItemsCollection =…

casaout
- 1,819
- 3
- 24
- 54
3
votes
2 answers
Binding to CurrentItem in a ItemsControl
The XAML below is basically trying to make a list of Buttons (rendered from the Name property of objects in the Views collection in the current DataContext.
When I click on a button the CurrentItem property of CollectionViewSource should change and…

thrag
- 1,536
- 4
- 20
- 32
3
votes
1 answer
Observable binding to two ICollectionView of same collection
So I'm using WPF in the MVVM way using Caliburn.Micro as a framework.
I have a ViewModel with a ObservableCollection that I need to show twice with different sorting, filtering and grouping.
I'm kind of having a hard time with this supposedly simple…

Ingó Vals
- 4,788
- 14
- 65
- 113
3
votes
2 answers
Metro App CollectionViewSource ObservableCollection Filter
It appears that filtering an ObservableCollection with CollectionViewSource is not possible in WinRT:
See here!
I can filter using LINQ, but how do I get the UI to update if changes that affect the filtered data are made?

c0D3l0g1c
- 3,020
- 5
- 33
- 71
3
votes
2 answers
In wpf how to access window.resources in usercontrol
I have a child usercontrol and I am having trouble accessing its parent usercontrol's resources. The resource is a collectionViewSource and its source is set in the code behind of the parent usercontrol, the source is set to a query result from LINQ…

Ash
- 657
- 9
- 16
3
votes
2 answers
Grouping ListView items from within XAML in Windows Store Apps
Is there a way to group collection items in the XAML code in windows store apps. In WPF you can use a CollectionViewSource and than use its property CollectionViewSource.GroupDescriptions or something like that, but for Windows Store apps it doesnt…

Kristian Vukusic
- 3,284
- 6
- 30
- 46
3
votes
1 answer
CollectionViewSource with Sort get sorted Items
I have a datagrid which has as source CollectionViewSource with custom sorting and I need to get sorted items collection as can be seen in datagrid. I can get sorted description and sort source collection, but I need this collection many time.
Is…

Jakub Čermoch
- 431
- 1
- 9
- 20
3
votes
2 answers
How do you apply multiple filter functions on one collection view source, one after another (AND relation)
I have been working with a Collection View Source object that is bound to a listview and the CVS is a view on top of Observable Collection of objects.
I know how to apply a filter using the following technique:
cvs.Filter += new…

Kevin Quiring
- 639
- 1
- 11
- 26
3
votes
3 answers
WPF multiple filters CollectionViewSource, first filter added works correctly, second filter added does not
I have a ListView that is bounded to a CollectionViewSource. I followed this article (refered to by many) for multiple filtering: http://www.zagstudio.com/blog/456#.UG8r6E1lWLE
I have two checkboxes set up for testing that do nothing but add a…

Kevin Quiring
- 639
- 1
- 11
- 26
3
votes
4 answers
My CollectionViewSource is not picking up changes
I have a ListView which I'm binding to a CollectionViewSource in code behind with:
collectionView = CollectionViewSource.GetDefaultView(TableView.ItemsSource);
collectionView.SortDescriptions.Clear();
collectionView.SortDescriptions.Add(new…

imekon
- 1,501
- 4
- 22
- 39