I have a scenario which works something like this.
I need a tabbed interface where each tab has an ultragrid populated with a hierarchical dataset. The datasets and grids are identical but contain different content based on criteria.
One of the criteria will be the content of the tag in the tabs (which will be created dynamically by iterating the rows in a dataset of possible values).
Some of the criteria will come from selections in shared comboboxes on the tab/tabstrip control.
Here's the crux - I want to maintain some criteria individually on each tab in a combo box which will have an instance on all tabs but whose value is unique to a given tab.
So Criteria 1 is the tab tag, Criteria 2 and 3 are the values of two combos shared between all tabs, and Criteria 4 is the value of a combo which is present on all tabs but which has a specific and different datasource and value on each tab.
I think my first conclusion is that this has to be an UltraTabControl, not an UltraTabStripControl, because only the former supports having controls unique to specific tabs.
The only way that comes to mind is to code the creation and placement of the tabspecific controls each time a tab is created but maybe there's a functionality of the UltraTab control(s) that I've missed?
Hello Scott,
Thank you for posting in our forum.
Yes, you are correct. You should use UltraTabControl. Please note each tab has its UltraTabPageControl where the tab’s specific controls are placed. So you will need to add the grid and tab specific combo to the UltraTabPageControl of each tab you have added to your UltraTabControl. More about UltraTabPageControl you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinTabControl.v15.1~Infragistics.Win.UltraWinTabControl.UltraTabPageControl.html.
In the attached sample solution I have implement UltraTabControl with several tabs created in run time. Each tab has its own UltraGrid and CombBox. There are also two shared ComboBoxes. Please check my sample project and let me know if you need any additional information.
Thank you for using Infragistics Controls.
Yes, I arrived at the same conclusion and already built a project with code much like your sample. I'll study the sample to see if I could make my code more efficient.
Only trick was I used UltraExpandableGroupBox to locate the controls in so I had to be careful about the order in which the controls were created, but all good.
Thanks!