Questions tagged [icollectionview]

An interface that enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.

The ICollectionView Interface, available in .NET 3+, enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.

http://msdn.microsoft.com/en-us/library/system.componentmodel.icollectionview.aspx

135 questions
0
votes
1 answer

Efficiently implementing ICollectionView for Filtering

I just implemented an ICollectionView into my first MVVM project and I have it working. I think, though, that the implementation could be better and more fluid. I'll post the code relating to my ICollectionView and if anybody can give me any tips or…
Jason D
  • 2,634
  • 6
  • 33
  • 67
0
votes
1 answer

WPF: ICollectionView.Refresh() refreshing only when UIElement loses focus, instead of Text and Value Change

I have an ICollectionView, called RepozitorijumWrapper which should display my entities based on six fields. The fields are two TextBox and four DateTimePicker elements. Basically, every time any of those elements change (even by a number/letter) I…
NLuburić
  • 912
  • 1
  • 10
  • 28
0
votes
1 answer

ICollectionView filter affects the source

I was experimenting with WPF and encountered some filtering behavior that I did not expect. I created a simple Window control with a ListView and a DataGrid, which display information about US presidents, such as name, party, and numerical order. …
akmartzke
  • 55
  • 6
0
votes
1 answer

Silverlight Datagrid always calls ICollectionView.MoveCurrentTo with null

I use https://github.com/jogibear9988/VirtualCollection a fork from me from the Project https://github.com/samueldjack/VirtualCollection Now I have the problem, everytime I click on a Item in the Datagrid, the selected Item is set correctly to my…
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43
0
votes
1 answer

Displaying CollectionView groups in different views?

I was just curious if it was possible to bind 2 different views to the same collection. One view displaying the contents of one group (PropertyGroupDescription) and one view displaying the other.. the target of the property group is a Boolean.
SilverX
  • 1,509
  • 16
  • 18
0
votes
1 answer

don't change a property in ChangePropertycallback

I have a ListView and binding ItemSource to a ICollectionView property, and binding selected item to a dp property. public static readonly DependencyProperty SelectedProperty = DependencyProperty.Register("Selected", …
Niloo
  • 1,205
  • 5
  • 29
  • 53
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

using SqlDependency class to populate ICollectionView with EntityFramework in C#

I want to refresh the ICollectionView object which has some product when a new product is added to database. How can I achieve this in C#, I am using EntityFramework for DAL.
Kishore Kumar
  • 12,675
  • 27
  • 97
  • 154
0
votes
0 answers

MenuItem and IcollectionView

I want to display a list of available languages in a menu. The languages are available as an ICollectionView. This is the code: