Finding the child BO bound to a ListView

Finding the child BO bound to a ListView

Old forum URL: forums.lhotka.net/forums/t/6948.aspx


DancesWithBamboo posted on Thursday, May 14, 2009

ASP.net.  I am using a ListView control with an EditItemTemplate template.  I am binding it to a CslaDataSource which is attached to a BusinessListBase object.  In the UpdateObject event of the CslaDataSource, how do I get a reference to the specific child of the BusinessListBase object that was being edited so I can map the changes back to the BO? 

Do I need to track the primary key in a hidden field and then search the BusinessListBase for it?

Thanks.

Copyright (c) Marimer LLC