Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

ListCollectionView CancelEdit throws exception

$
0
0

I have a page. It has a ListCollectionView property. The property is initialized in the ctor via input args before the call to InitializeComponent(). I want to edit the current item. I call MyLcv.EditItem(MyLcv.CurrentItem). To accept changes, I call MyLcv.CommitEdit(). It works. To cancel changes, I call MyLcv.CancelEdit(). This throws an InvalidOperationException, saying "CancelEdit is not supported for the current edit item." Any Ideas?

Bill


Bill Swartz


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>