﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Hierarchical data (UltraGrid)</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 11 Sep 2026 12:18:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost11511.aspx</link><description>Here is a sample using both the Infragistics and Dev Ex grid and the SF Sample Data.&lt;/P&gt;&lt;P&gt;Basically you drag and drop your business objects onto a data set and then drag the dataset onto the form and set the datasource of the grid or report. I haven't had any problems using it so far actually I&amp;nbsp;worked on it over the last week and a little over the weekend.</description><pubDate>Mon, 17 Sep 2007 10:00:31 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost9031.aspx</link><description>In one of the forum posts back on February, Trent mentioned that you guys planned to release a sample&amp;nbsp; showing how to create children bands within the Infragistics Ultragrid using the SF BOs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently rewriting our CRM product using SF and&amp;nbsp;require this ability on 12 grids.&amp;nbsp; Our current CRM uses LLBLGen for data access and the hierarchical data structure is already built into the business object class.&amp;nbsp; I can't seem to figure out how to make this work using the SF BO's.&amp;nbsp; An example would be very helpful or even some direction on how to make it work would help as well.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Mon, 17 Sep 2007 10:00:31 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost11505.aspx</link><description>One option that may work as well is creating a custom data source that inherits the BBS (BusinessBindingSource) then create child properties that expose other BBS classes.&amp;nbsp; This is the approach that we have taken with our reports and I have not tested it on this grid.&amp;nbsp; We ended up create a custom object model for all of our complicated grid interaction that has the logic to go and update the BOs.&amp;nbsp; But what I am talking about above would be something like this:&lt;/P&gt;&lt;P&gt;[codesnippet]Public Class MyCustomersBBS&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits MicroFour.StrataFrame.Business.BusinessBindingSource&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.New()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.BusinessObject = New CustomersBO()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;End Class&lt;/P&gt;&lt;P&gt;Public Class MyOrdersBBS&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits MicroFour.StrataFrame.Business.BusinessBindingSource&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.New()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.BusinessObject = New OrdersBO()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;End Class&lt;/P&gt;&lt;P&gt;Public Class CustomersBO&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits MicroFour.StrataFrame.Business.BusinessLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Shared _OrdersBBS As New MyOrdersBBS&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public ReadOnly Property Orders() As MyOrdersBBS&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim lcFilter As String = "or_cust_pk=" &amp;amp; Me.cust_pk.ToString()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not _OrdersBBS.BusinessObject.Filter.Equals(lcFilter) Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _OrdersBBS.BusinessObject.Filter = lcFilter&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return _OrdersBBS&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub CustomersBO_CurrentDataTableRefilled() Handles Me.CurrentDataTableRefilled&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Me.DesignMode Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _OrdersBBS.BusinessObject.FillByParent(Me)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;End Class[/codesnippet]&lt;/P&gt;&lt;P&gt;Then when you bind the CustomersBBS you will have the orders, etc.&amp;nbsp; This will&amp;nbsp;obviously take some "tweaking" and I have not tested it on a grid.&amp;nbsp; But it might be a different approach to try.&amp;nbsp; You will probably have to take into account the navigated event to apply the filter since this is associated with a grid.&amp;nbsp; But it is just a thought. :)</description><pubDate>Mon, 17 Sep 2007 09:32:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost11500.aspx</link><description>What I did was create a class the inherits from data set and implements Icontainer control. I then use this as a datasource for the grid.&amp;nbsp;I am only using it&amp;nbsp;read only and not for data entry but I suppose that you could.&amp;nbsp;</description><pubDate>Mon, 17 Sep 2007 08:36:29 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost11494.aspx</link><description>Any news on that topic?</description><pubDate>Sat, 15 Sep 2007 05:37:53 GMT</pubDate><dc:creator>Bastian Töpfer</dc:creator></item><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost9175.aspx</link><description>Trent, thank you for the update and I appeciate all the effort. I'm crossing my fingers...&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 29 May 2007 14:41:33 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost9167.aspx</link><description>Tim,&lt;/P&gt;&lt;P&gt;We have actually been trying to come up with a "reasonable" and simple solution.&amp;nbsp; At the moment it requires a bit of work just due to the fact of how the UltraGrid bands are expecting to interact with the objects.&amp;nbsp; I know that Ben had played with this quite a while the other day and we do not have a straight forward answer on this topic yet.</description><pubDate>Tue, 29 May 2007 13:34:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Hierarchical data (UltraGrid)</title><link>http://forum.strataframe.net/FindPost9155.aspx</link><description>Just wondering if I can get confirmation on this issue. I still can't get this to work and want to know if it's possible, and if so, how to make it work. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 29 May 2007 10:41:51 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item></channel></rss>