I'm currently trying to bind a DataGrid.ItemsSource to a custom RowCollection that implements IList and INotifyCollectionChanged:
Public Class RowCollection(of T)
Implements IList(Of T)
Implements INotifyCollectionChanged
Private _List As New List(Of T)
...
(Sorry for the VB code, I will translate all the code in C # soon.)
Note that the class is not derived from any existing CLR collection. I created my own class because I need to override GetItemAt in order to implement the paging entry. The Internally Collection adds and removes objects from its own personal list _List.
Now I can view the elements in the DataGrid, but as soon as I double-click the cell to edit, I get an InvalidOperationException: "Editable elements" are not available. .
, , DataGrid?