I have an ultratabcontrol that hads 5 ultratabs, ultratab1, ultratab2, ultratab3, ultratab4, ultratab5.
each ultratab has its own ultragrid, I am trying to write that basically puts the tab first or infront of the ultratabs where where ultragrids have data or records, but if ultragrids does not have rows or data, put the ultragrid tab last within in the ultratabcontrol. the customers wants to keep the ultratab visible at all times.
example
ultratab1: Ultragrid1 has 5 records, ultratab2: Ultragrid2 has 0 records, ultratab3: Ultragrid3 has 0 records, ultratab4: Ultragrid4 has 3 records, ultratab5: Ultragrid5 has 2 records
You are basically shifting all of the tabs with ultragrids with no rows to the end of the ultratabcontrol
Output:
ultratab1, ultratab4, ultratab5, ultratab2, ultratab3.
Hello Keith,
Maybe one possible way to solve this task could be if you are using VisibleIndex property of your UltraTabControl. Each time when the records in your UltraGrids are changing, you could repositioned your Tabs. for example: ultraTabControl1.ActiveTab.VisibleIndex = 3;
Let me know if you have any questions.
Regards
I know how to set the position, Im trying to think of the logic to organize the tabs in the front where each tab that has an ultragrid with data to the front and tabs with ultragrid with no data to the back., im struggling at the moment with the logic.
I need some assistance.