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 Levelvar rootBand = this.ultraDataSource1.Band;rootBand.Columns.Add("Account");rootBand.Columns.Add("Name");rootBand.Columns.Add("Backcolor");rootBand.Columns.Add("ForeColor");
//Seconbd Levlevar 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 Levelvar 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
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.