Winforms Devex grid and EntityCollection

Posts   
 
    
JimFoye avatar
JimFoye
User
Posts: 656
Joined: 22-Jun-2004
# Posted on: 01-Mar-2006 23:53:07   

Well, of course right when I am trying to help somebody else on a Devex issue in another thread I am going to have my own problem and ask for help disappointed

I've been binding EntityCollection to the XtraGrid and having no problems adding, editing, and saving records. Now I put turned on the navigator and the delete button does not light up. I have another place in my app where I am binding a DataTable to the grid, so I turned on the navigator there, and the delete button is enabled.

Has anyone had a problem deleting a record from an EntityCollection when bound to a Devex XtraGrid? confused

Jim

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 02-Mar-2006 07:58:24   

Try to set the EntityCollection.AllowRemove = true;

JimFoye avatar
JimFoye
User
Posts: 656
Joined: 22-Jun-2004
# Posted on: 02-Mar-2006 17:08:15   

Yes, I see for some reason this defaults to false confused I set it true and it works fin