Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Add dynamic child band to UltraDataSource
posted

I need to create x number of deep childBands from a DataSource and after that fill it with data from a Query to show it in a Horizontal UltraGrid like a treeView,

I have the grid ready with a sample from Mike from the Infragistics team but a have problerm to create and fill the dymanic childs bands.

This a example of a fixed main band with two childs

this.ultraDataSource1.Reset();

// First Level
var rootBand = this.ultraDataSource1.Band;
rootBand.Columns.Add("Account");
rootBand.Columns.Add("Name");
rootBand.Columns.Add("Backcolor");
rootBand.Columns.Add("ForeColor");

//Seconbd Levle
var childBand = this.ultraDataSource1.Band.ChildBands.Add("Child Band");
childBand.Columns.Add("Account");
childBand.Columns.Add("Name");
childBand.Columns.Add("Backcolor");
childBand.Columns.Add("ForeColor");

//Third Level
var grandChildBand = childBand.ChildBands.Add("Grandchild Band");
grandChildBand.Columns.Add("Account");
grandChildBand.Columns.Add("Name");
grandChildBand.Columns.Add("Backcolor");
grandChildBand.Columns.Add("ForeColor");

How can I create a dinamyc number of Childs band?


Best regards,

Alejandro

Parents
No Data
Reply
  • 34430
    Verified Answer
    Offline posted

    Hello Alejandro,

    It appears that this question was answered by Mike in a recent answer to a separate forum thread. I would recommend taking a look at this, and if you have any other questions or concerns, please let me know.

Children
No Data