BusinessListBase DataBinding on DataGridViewBusinessListBase DataBinding on DataGridView
Old forum URL: forums.lhotka.net/forums/t/1797.aspx
whity posted on Monday, November 20, 2006
hi there,
i'm having a problem and don't understand why, maybe you guys can help me.
i have an businesslist, binding to a datagridview, until here works fine.
but when i try to delete a record, i get the following error:
Invalid for root objects - use Delete instead
it's strange because, i didn't define the object has child, and it tries to execute the deleteChild method.
thanks in advance.
ajj3085 replied on Monday, November 20, 2006
Hi,
Objects contained within a BusinessList are by definition children. The BusinessBase objects in the list must call MarkAsChild, usually in the constructor, and you won't get that exception.
HTH
Andy
whity replied on Monday, November 20, 2006
it's working.
thanks for the help.
Copyright (c) Marimer LLC