Questions tagged [ieditablecollectionview]

7 questions
5
votes
3 answers

'EditItem' is not allowed for this view - databinding issue

I am trying to do data binding in WPF on a data grid using a custom list. My custom list class contains a private data list of type List. I cannot expose this list, however the indexers are exposed for setting and getting individual items. My…
Scooby
  • 635
  • 3
  • 9
  • 21
3
votes
1 answer

What is the type of object added by IEditableCollectionView?

Adding objects with the IEditableCollectionView addNew() method is pretty decent. However I'm not sure how well it works with my generic code I have. I have a ObservableCollection of my base class. Depending on what the user wants to see it can be…
3
votes
1 answer

WPF: IEditableCollectionView and CanAddNew and empty collections

We were having some issues with the wpf datagrid and IEditableCollectionView (although this question applies to using IEditableCollectionView and ItemsControl) When you have a collection with no items in it, the IEditableCollectionView cannot…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
1
vote
2 answers

Why Use IEditableCollectionView?

I've got a project I've got to crank out (thanks to an employee quitting on the job before the deadline). He'd been working in WPF. The interface looked cool, but it never was able to collect data from the company's old data access DLLs. (Rewriting…
user153923
1
vote
0 answers

WPF: How to use views like ICollectionView and IEditableCollectionView

I understand the syntax but not how really to use it. It's clear in many basic scenarios but as soon as it get's a little bit advanced I start getting a headache. For example there are many different views but often not clear wich one to use. Also…
Ingó Vals
  • 4,788
  • 14
  • 65
  • 113
0
votes
2 answers

WPF Listview with ListViewCollection - Listview not reflecting the collection's changes.

I have a listview that's bound to a ListCollectionView. The LCV has a single sortdescription at any time. I am updating the collection in this manner: IEditableCollectionView IEditView = lvBatches.Items as…
Yatrix
  • 13,361
  • 16
  • 48
  • 78
0
votes
1 answer

How to filter on a constantly updated collection displayed in grid?

Let's say I have a WPF application that shows "questions". Questions can have different statuses, such as "open", and "answered". The questions are stored in an ObservableCollection and displayed on a DataGrid. I want to have a toggle button at the…
tbfa
  • 489
  • 4
  • 12