Heirarchal data binding tips?


Author
Message
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)
Group: Forum Members
Posts: 23, Visits: 129
Anyone have any tips on binding simple hierarchal business objects to an Infragistics grid?

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/Analyst
Captain D's, LLC

Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
The grid will respect the filter of the business object.  So if you have a relationship setup between the two business objects, and you use the ChildAutoFilterOption property of the parent BO, then the filter will be automatically applied.  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.

But in short, the grid will respect the filter of the BO if you are using the BusinessBindingSource control to wrap the BO.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Wil Cantrell - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Wil Cantrell - 18 Years Ago
             Sure. :)
Trent L. Taylor - 18 Years Ago
Wil Cantrell - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Michael Reese - 18 Years Ago
Tony Katona - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Tony Katona - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Tony Katona - 18 Years Ago
                     Doh! If one enters MicroFour into a search engine one finds:...
Tony Katona - 18 Years Ago
                         If you are not interested in purchasing our medical software then...
Trent L. Taylor - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search