I have an tabcontrol that hads 5 tabs, tab1, tab2, tab3, tab4, tab5.
each ultratab has its own ugrid, I am trying to write that basically puts the tab first or infront of the tabs where where grids have data or records, but if grids does not have rows or data, put the grid tab last within in the tabcontrol. the customers wants to keep the tab visible at all times.
example
tab1: grid1 has 5 records, tab2: grid2 has 0 records, tab3: grid3 has 0 records, tab4: grid4 has 3 records, tab5: grid5 has 2 records
You are basically shifting all of the tabs with grids with no rows to the end of the tabcontrol
Output:
tab1, tab4, tab5, tab2, tab3.