Heirarchal data binding tips?


Author
Message
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
Sure. Smile
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
Ah. Interesting. Thanks!

____________________
Programmer/Analyst
Captain D's, LLC

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.

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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search