I've got a UserControl that I want to use as the edit form inside a grid. The DataItem is a structure with a collection of classes inside. When I click the Edit button to bring up the grid the DataItem I get is fine, but then when I click the button that fires the UpdateCommand event the DataItem I receive a DataItem without any of the classes that should be inside it (the collection in the structure is null).
I also don't understand why the grid would later fire NeedDataSource *after* setting DataItem?
I also don't understand why the grid would later fire NeedDataSource *after* setting DataItem?