Questions tagged [collectionviewsource]

The Extensible Application Markup Language (XAML) proxy of a CollectionView class.

377 questions
2
votes
2 answers

CollectionViewSource initialization raises listbox's SelectionChanged

May be I missed something, but I've already beat my head with this one. I have defined CollectionViewSource: and ListBox:
saqw3r
  • 73
  • 6
2
votes
1 answer

CollectionViewSource in WPF not displaying data from DataTable

The data from the DataTable doesn't fill the ComboBox or TextBox. Data from a SQL Server database is used to fill a DataTable, which is working fine, and I think the CollectionViewSource is okay as well, but the binding to the display elements isn't…
GPiton
  • 21
  • 1
2
votes
1 answer

When is CollectionViewSource Source property set if viewSource is a static resource

I got following CollectionViewSource definition in XAML:
Valentin Kuzub
  • 11,703
  • 7
  • 56
  • 93
2
votes
0 answers

Xamarin Forms CollectionView throwing NSInternalInconsistencyException

I have a Xamarin forms project which consists of a ColectionView whose ItemSource is backed by a bindable property of type ObservableCollection in the ViewModel. Adding new items to the ObservableCollection is throwing…
2
votes
1 answer

How to pass a CollectionViewSource to a converter?

I have something like this:
Alfie
  • 297
  • 1
  • 12
2
votes
1 answer

Test if the current entry is the first or last entry in a CollectionViewSource

I am reading rows from an MS SQL Server table into a C# CollectionViewSource via Entity Framework. One row = one collection entry. I use data binding to connect each CollectionViewSource entry's data elements to a WPF GUIs' controls. The user uses…
Joe
  • 1,304
  • 1
  • 10
  • 22
2
votes
1 answer

Filter CollectionViewSource by search string - bound to itemscontrol (WPF MVVM)

Is there a way I can filter the CollectionViewSource to only show games in the ItemsSource which "Title" contains the "searchString"? In my PosterView I have this CVS:
Pete Kemp
  • 91
  • 1
  • 8
2
votes
0 answers

XAML - How to write nested CollectionViewSource for hierarchical data

I have a treeview that has a hierarchical data. I'd like to add a filter to it so, I could search any element up to n-level. To do that, I find the concept of nested collectionviewsource interesting. But I'm not sure how it will programmatically…
Ali Asad
  • 1,235
  • 1
  • 18
  • 33
2
votes
2 answers

How to deactivate the sorting done using CollectionViewSource.SortDescription?

I am using a CollectionViewSource and have set up the CollectionViewSource.SortDescription property in xaml for sorting the collection on a particular property. However, now I have a case wherein if certain condition is true, or collection is of…
AbSharp
  • 119
  • 2
  • 6
  • 20
2
votes
2 answers

WPF TreeView Dynamic Grouping

I'm attempting to create a TreeView in WPF that is bound to a CollectionViewSource. I create groups in the CollectionViewSource and have the HierarchicalDataTemplate setup in the XAML to display the TreeView properly. In my ViewModel I have a method…
Amit
  • 103
  • 1
  • 8
2
votes
1 answer

How can I bind DataGrid row count after a CollectionView filter is applied?

Previously to implementing filtering on the CollectionView, i used this to display the number of rows within the datagrid; I have since implemented a filter as…
Stafford Williams
  • 9,696
  • 8
  • 50
  • 101
2
votes
1 answer

x:Bind type can't be found

I'm attempting to use a CollectionViewSource in my XAML in order to have a grouped ListView. The CSV:
RareNCool
  • 426
  • 8
  • 19
2
votes
2 answers

WPF: Get an item's position index within CollectionViewSource and not on the bound source

I've got a view model that exposes a CollectionViewSource built around my observable collection. I also have a command for deleting items: public ObservableCollection Foos { get; set; } public ICollectionView FooCollectionView { get;…
Jason Butera
  • 2,376
  • 3
  • 29
  • 46
2
votes
1 answer

I need CollectionViewSource Sorting/LiveSorting Clarification

I have been searching on this, but I can't find anything that actually clears it up for me. What is the interaction between the SortDescription collection and the LiveSortingProperties? Does LiveSorting rely on the existence of SortDescriptions to…
Digital Camel
  • 175
  • 2
  • 14
2
votes
1 answer

How can I maintain the current selection in a sorted silverlight treeview?

I have a silverlight 4 TreeView control with a hierarchy of data. I want the items in each level to be sorted alphabetically, so I am using a CollectionViewSource, but don't actually care how the sorting is accomplished. The CollectionViewSource…