I'm positive I have the ParentRelationship properties set for the objects and have instances on my form. Also included is a BusinessBindingSource instance pointing to the top level business object. And the binding source is bound to the grid.
Should the grid pick up on the nested data simply through binding? Or do I need to go ahead and extract the tables, set relationships and bind that way? The data is mostly for presentation so this is ok. I was hoping there was a more elegant solution?
____________________Programmer/AnalystCaptain D's, LLC
But in short, the grid will respect the filter of the BO if you are using the BusinessBindingSource control to wrap the BO.
Thanks
Thanks guys
"This filter does, however, expect the records to already be within the BO. So at this point you have have already called the FillByParentPrimeryKey or something to that effect and already have the proper child records."
Does that mean we can't employ 'lazy-loading' ?
Or, am I just dreaming:
A) navigator of Customers (treeview, listbox, combobox);
B) grid of lazy-loaded Orders based on selected Customer;
c) nested grid of lazy-loaded Items based on selection (click the "+") of an Order.
As for lazy-loading, we use this all of the time by loading child records in through the parents Navigated event. There are a number of samples that show this including the AdvancedListView sample and the CRM sample.
Being brand new to SF, and having gone thru most of the tutorial in 2 days, I'm just getting some handle on SF. Of course my "dream" question is a small part of the impending GUI 'wars' here ! But, still, I want to prototype my ideas; they have to be better than the - to be polite - "menu mania" that I've been hired to rewrite.