The Extensible Application Markup Language (XAML) proxy of a CollectionView class.
Questions tagged [collectionviewsource]
377 questions
0
votes
2 answers
ComboBox SelectedValue correctly sets SelectedValue in Viewmodel but not in View
In my Project my selectedvalue sets correctly in viewmodel but my view not sets its selectedvalue
in xaml code:
user1584245
0
votes
1 answer
Finding number of groups created with CollectionViewSource grouping
I am having a list of messages and I am grouping them based on server(serverId) each message belongs to, like this -
…

akjoshi
- 15,374
- 13
- 103
- 121
0
votes
1 answer
Unit Tests under VS2012 Fail: CollectionViewSource.GetDefaultView returns null
I have recently attempted to upgrade a solution from VS2010 to VS2012, and as part of that I have introduced the new .runsettings file to generate code coverage results.
In order to specify the run settings file I have had to un-select the…

Steve Greatrex
- 15,789
- 5
- 59
- 73
0
votes
3 answers
CollectionViewSource grouping one item to multiple groups
I am trying to mimic the msn messenger contactlist treeview display.
I have a Contact object which has a Groups property that returns an array msngroups that the Contact belongs, this meaning say I have something as per bellow
Class Contact
{
…

tesla1060
- 2,621
- 6
- 31
- 43
0
votes
2 answers
CollectionViewSource sorting with default and backup sources
I am working on a scheduling program in which items have a scheduled date, but the user can elect to override this for a date they choose. To implement this, my Item object uses two properties: ScheduledDate (DateTime) and ActualDate (DateTime?). …

gregsdennis
- 7,218
- 3
- 38
- 71
0
votes
1 answer
WPF CollectionViewSource sorting issues with null values
I've got a collectionviewsource whose source is an observable collection and i'm sorting like so ;
_viewSource.SortDescriptions.Add(new SortDescription() { PropertyName ="PropertyName", Direction = ListSortDirection.Ascending });
this all works…

Mark D
- 279
- 1
- 7
- 17
0
votes
1 answer
A method set as ICollectionView.Filter sees other properties in the class as null even though they are not null
I'm trying to implement a basic filtered list box in WPF. The user types something and the list is narrowed to the values beginning with the typed phrase.
I have:
a View with:
a TextBox whose Text property is bound to InstitutionFilteringString…

kamilk
- 3,829
- 1
- 27
- 40
0
votes
2 answers
WPF: How do I limit number of items in Combobox ItemsSource?
I've created a WPF custom ComboBox which has the ability to filter items according to a "search string". The ComboBox ItemsSource is bound to a ObservableCollection.
The ObservableCollection is a collection of "Person" object. It exposes a property…

Girirsh
- 48
- 8
0
votes
2 answers
Intercepting DataGrid's Adding Event
I'm trying to intercept the WPF datagrid's event for adding a new item. I need to set some properties on the data object which is inserted into the datasource. Is there a way I can do this?

Echilon
- 10,064
- 33
- 131
- 217
-1
votes
1 answer
CollectionViewSource Filter a Collection view with a list of items
i will try to explain my problem best i can,
i have my collection view:
CollectionViewSource ArticoliProduzioneViewSource;
that need to be filtered by 3 list of items
public ObservableCollection ListaSerie { get; set; } = new…

1001100 1101111 1110010 110010
- 197
- 3
- 11
-1
votes
1 answer
WPF CollectionViewSource in ResourceDictionary
I've CollectionViewSource in ResourceDictionary file.
MenuItems.xaml

Krish
- 616
- 9
- 19
-1
votes
2 answers
CollectionViewSource.Filter is not raised with several CVS for the same collection in Datagrid
I am sharing a the same collection of items among several view models in a DataGrid. When one item on this shared list is selected, I need it to disappear from the list of the others items.
Here are the different view models…

fharreau
- 2,105
- 1
- 23
- 46
-1
votes
2 answers
Binding observable collection to a TreeView in WPF
Thanks in advance,
I want to bind an observable collection to a TreeView in WPF such that it should display the each TreeView Node as a CountryType. The TreeView is bound to this collection from code behind.
Here's the code :
public partial class…

DotNetSpartan
- 931
- 4
- 20
- 41
-1
votes
1 answer
Why is `ICollectionView.MoveCurrentToNext` moving to items that are not in the filter range?
I have a CollectionView that is filtered by a predicate. When I debug this, I can see that the result view only contains the items that match the filter. However, when I use the MoveCurrentTo*()-methods the CurrentItem-pointer appears to move within…

Oliver Giesen
- 9,129
- 6
- 46
- 82
-2
votes
1 answer
CollectionViewSource: LiveShaping properties do not work
I'm using the CollectionViewSource with LiveShaping properties, especially Grouping activated. The problem is that changing the Grouping properties does not work immediately. It works however, when I refresh the view by manually calling Refresh on…

msedi
- 1,437
- 15
- 25