Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
AllowAddNew / AddNewRecordLocation
posted

I'm trying to do the simple example of having the first row be the one that new records are added on.  In the example a dataset is created then attached to the datasource. 

this.XamDataGrid1.DataSource = ds.Tables[0].DefaultView; It works fine. 

When I set the datasource to an ObservableCollection that first add row is missing.  any thoughts?

Parents
No Data
Reply
  • 4850
    Offline posted

    The reason the add record doesn't show up is because we only support adding records to a data source that implements the IBindingList interface. Instead of using ObservableCollection try using BindingList<T>.

Children