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
595
Add New Row Disappears When Last Record In Collection Is Deleted
posted

Hi all,

I have the same problem as described here: http://forums.infragistics.com/forums/p/52446/272845.aspx#272845

Essentially, I have a master-details scenario where I'm binding my xamDataGrid to an ADO.NET entity collection, and when I delete all objects in the collection, the add row functionality disappears and doesn't return until I change the master object to one with records in the details collection. Then, when I change the datacontext to an object with no values in the details collection, the add record functionality remains, but if I add a record and deletes it, it goes away. Why does this happen and what is the workaround? (I want the add row functionality to always exist, even if binding to an empty collection).

Thanks in advance,

Martin

Parents Reply Children
No Data