Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6000741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:44:14+00:00 2026-05-23T00:44:14+00:00

In my WPF app I have a XamDataGrid. The grid is bound to an

  • 0

In my WPF app I have a XamDataGrid. The grid is bound to an ObservableCollection. I need to allow users to insert new rows through the grid but it turns out that in order for the “Add New Row” row to be available, the xamDataGrid’s source needs to implement IBindingList. ObservableCollection does not implement that interface.

If I change my source to a BindingList, it works ok. However, from what I can understand from reading up on this topic, BindingList is really a WinForms thing and is not fully supported in WPF.

Would I be making a mistake if I changed all of my ObservableCollections to BindingLists? Does anyone have any other suggestions as to how I can get add new row functionality for my xamDataGrid while keeping the source as an ObservableCollection? It is my understanding that there are a number of different grids that require IBindingList to be implemented in order to support add new row functionality but most solutions I see are to just switch to BindingList.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:44:15+00:00Added an answer on May 23, 2026 at 12:44 am

    The IBindingList interface and BindingList class are defined in the System.ComponentModel namespace, and so are not strictly Windows Forms related.

    Have you checked if xamGrid supports binding to a ICollectionView source? If so, you could expose your data sources using this interface and back it using a BindingListCollectionView.

    You could also create a subclass of ObservableCollection<T> and implement the IBindingList interface:

    using System;
    using System.ComponentModel;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    
    public class ObservableBindingList<T> : ObservableCollection<T>, IBindingList
    {
        //  Constructors
        public ObservableBindingList() : base()
        {
        }
    
        public ObservableBindingList(IEnumerable<T> collection) : base(collection)
        {
        }
    
        public ObservableBindingList(List<T> 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(); }
        }
    }
    

    Alternately, you could subclass BindingList<T> and implement the INotifyCollectionChanged interface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In WPF app I have a ListView which is connected with ObservableCollection ShQuCollection through
I have a WPF app in which I need to programatically manipulate at runtime.
We have a WPF app that allows our users to download encrypted content and
I have a C# WPF app that every time the user opens a new
I have a wpf app that shows 5 different usercontrols as you go through
In WPF app I have an Observable Collection which is connected through databinding with
I have a WPF app. I need to embed a Silverlight app inside it.
I have WPF app with 2 windows - whats the best way to syncronise
I have a WPF App that implements a ListView. I would like to show
I have a WPF app that is using the MVVM pattern. Hooking up buttons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.