Binding BOs to EnhancedList with Parent-Child relationship.


Author
Message
Lukasz Kustusz
Lukasz Kustusz
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 29, Visits: 125
Hello,

I'm quite new to Strataframe Framework. I installed the trial version just yesterday. I'm working on a log viewer project that would represent log records from the DB using the DevExpress gridview (which is the EnhancedList wrapper from the SF). 

The way my DB tables are structured are quite simple. I have three different logs that I'd like to represent in my grid. I have a MasterTable with PK = Rec_ID and LogType_ID, and I have 6 other tables, one for each log type. The MasterTable contains fields common to all logs, like time, user, etc. Each log table also has a Rec_ID, and LogType_ID. I also have a LogTypeDescription table with two fields (LogType_ID, LogDescription) with 6 records in it, each describing different log type.

I've created my BOs, one for each of the tables defined above, and I defined relationdhips between them using ParentRelationship property. Relationships are simple: MasterTable is the parent to all other tables, linking on the Rec_ID, LogType_ID.

I'd like to be able to see those relationships represented in the grid using its Master-detail view, where master records would be expandable showing a different view depending on the type of log.

I was able to bind my MasterTable to the grid (Using BusinessBindingSource bound to the Mastertable), but the relationships are not detected. I've already done something similar using embedded ADO.NET dataset, and it works fine, but I'd like to se if strataframe can do similar tricks. Form the DevExpress documentation I know that in order for the Master-Detail view to work I have to Master-Detail: DataTable specific names for the TableAdapters, ie. AdapterTable1, AdapterTable2 etc (This is in Windows Forms Components > Products > XtraGrid > Concepts > Master-Detail Overview > Binding to Data Specifics > Master-Detail: DataTable Use of the DevExpress documentation)

-> How can I do this with EnhancedList and BOs?

-> Do I have to use BusinessBindingSource, and if not how should I set up the binding?

-> How can I specify that the LogType_ID from every BO be "replaced by" LogDescription from the LogTypeDescription BO? 

-> Is there a way for a BO to  represent a join of two tables?

Thanks,

Lukasz

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Lukasz Kustusz - 14 Years Ago
Ivan George Borges - 14 Years Ago
Lukasz Kustusz - 14 Years Ago
Trent L. Taylor - 14 Years Ago
Lukasz Kustusz - 14 Years Ago
                         Hi Lukasz. I went ahead and downloaded DevEx to create a quick sample...
Ivan George Borges - 14 Years Ago
                             Thank you very much for the sample, I'm eager to try it out. I imagine...
Lukasz Kustusz - 14 Years Ago
                                 It uses the StrataFrame Sample database that is installed with the SF...
Ivan George Borges - 14 Years Ago
                                     Thank you again for all your support. I've rebuilt my project...
Lukasz Kustusz - 14 Years Ago
                                         You are welcome, Lukasz. To accomplish what you asked, I would add an...
Ivan George Borges - 14 Years Ago
                                             Thank you for your comment. I tried it but it doesn't work exactly as...
Lukasz Kustusz - 14 Years Ago
                                             See previous post
Lukasz Kustusz - 14 Years Ago
                                                 That is the way I usually go. On the grid, you probably need an event...
Ivan George Borges - 14 Years Ago
                                                     Thanks Ivan, I finally solved the issue with some support from the...
Lukasz Kustusz - 14 Years Ago
                                                         As Trent has written to you before, StrataFrame covers many different...
Ivan George Borges - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search