I have a scenario where i have modules, each module has sections and each section has programs.
So, I am creating groups during runtime in my program based on modules.
GetModules()
For each module
ExBar1.Groups.Add(ModuleID) ExBar1.Groups(ModuleID).Text = ModuleName ExBar1.GroupSettings.Style = Infragistics.Win.UltraWinExplorerBar.GroupStyle.ControlContainer
GetSections() based on module
For each section
ContainerCntl = New Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarContainerControl ContainerCntl = ExBar1.Groups(ModuleID).Container
In each ContainerCntl, I am adding a Tree by name TreeCntl
TreeCntl = New Infragistics.Win.UltraWinTree.UltraTree ContainerCntl.CreateControl() ContainerCntl.Controls.Add(TreeCntl)
GetPrograms() based on Sections
Within TreeCntl, I am adding UltraLabel and another SubTree where SubTree Actually loads Programs and label displays name of the section
So,
Try SubTreeLabel = New Infragistics.Win.Misc.UltraLabel ContainerCntl.CreateControl() ContainerCntl.Controls.Add(SubTreeLabel) 'TreeCntl.CreateControl() 'TreeCntl.Controls.Add(SubTreeLabel) SubTreeCntl = New Infragistics.Win.UltraWinTree.UltraTree ContainerCntl.CreateControl() ContainerCntl.Controls.Add(SubTreeCntl) 'TreeCntl.CreateControl() 'TreeCntl.Controls.Add(SubTreeCntl)
I have a problem over here, Do i need to Create Controls under ContainerCntl and add them or else create them under TreeCntl and Add them. If I do the second way, it is not displaying them but first one is working fine.
Help me in this.