Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.ibindinglist.aspx" rel="nofollow">IBindingList</a> interface and <a href="http://msdn.microsoft.com/en-us/library/ms132679.aspx" rel="nofollow">BindingList</a> class are defined in the System.ComponentModel namespace, and so are not strictly Windows Forms related.</p> <p>Have you checked is <a href="http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/" rel="nofollow">xamGrid</a> supports binding to a <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.icollectionview.aspx" rel="nofollow">ICollectionView</a> source? If so, you could expose your data sources using this interface and back it using a <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.bindinglistcollectionview.aspx" rel="nofollow">BindingListCollectionView</a>.</p> <p>You could also create a subclass of <code>ObservableCollection&lt;T&gt;</code> and implement the IBindingList interface:</p> <pre><code>using System; using System.ComponentModel; using System.Collections.Generic; using System.Collections.ObjectModel; public class ObservableBindingList&lt;T&gt; : ObservableCollection&lt;T&gt;, IBindingList { // Constructors public ObservableBindingList() : base() { } public ObservableBindingList(IEnumerable&lt;T&gt; collection) : base(collection) { } public ObservableBindingList(List&lt;T&gt; list) : base(list) { } // IBindingList Implementation public void AddIndex(PropertyDescriptor property) { throw new NotImplementedException(); } public object AddNew() { throw new NotImplementedException(); } public bool AllowEdit { get { throw new NotImplementedException(); } } public bool AllowNew { get { throw new NotImplementedException(); } } public bool AllowRemove { get { throw new NotImplementedException(); } } public void ApplySort(PropertyDescriptor property, ListSortDirection direction) { throw new NotImplementedException(); } public int Find(PropertyDescriptor property, object key) { throw new NotImplementedException(); } public bool IsSorted { get { throw new NotImplementedException(); } } public event ListChangedEventHandler ListChanged; public void RemoveIndex(PropertyDescriptor property) { throw new NotImplementedException(); } public void RemoveSort() { throw new NotImplementedException(); } public ListSortDirection SortDirection { get { throw new NotImplementedException(); } } public PropertyDescriptor SortProperty { get { throw new NotImplementedException(); } } public bool SupportsChangeNotification { get { throw new NotImplementedException(); } } public bool SupportsSearching { get { throw new NotImplementedException(); } } public bool SupportsSorting { get { throw new NotImplementedException(); } } } </code></pre> <p>Alternately, you could subclass <code>BindingList&lt;T&gt;</code> and implement the <a href="http://msdn.microsoft.com/en-us/library/system.collections.specialized.inotifycollectionchanged.aspx" rel="nofollow">INotifyCollectionChanged</a> interface.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload