I am trying to do data binding in WPF on data grid using a cutom list. My custom list class contains a private data list of type List. I can not expose this list however the
though I am not fully understand your requirement, do you think using an ObservableCollection will solve your issue?
public abstract class TestElementList : ObservableCollection
where T : class
{
public virtual T Get(int index)
{
T item = this[index];
return item;
}
public virtual void Set(int index, T item)
{
this[index] = item;
}
...
}