I'm binding the XamDaraGrid to IEnumerable colletion, that doesn't implement the IBindingList. But the AddNewRecord still appears at the top of the grid. How does this work?
Hello,
Which is this collection?
If you do not want it to appear, you can set the AllowNew property of the FieldLayoutSettings to false.
Alex, this is how the dataGrid is bound:
<igDP:XamDataGrid x:Name="dataGrid" DataSource ="{Binding DataItems}">
System.Data.Linq.
Table<MyObject> MyTable;
get
{ var t=(from o in MyTable select o);
}
t is not IBindingList in this case, and the AddNewRow still appears. I'm aware of the possibility of setting the AllowNew to false, but I was reading in all other posts that this should not work, but for some reason it does.