3
Answers

Tabs positioning

David Smith

David Smith

12y
1.5k
1

I have an tabcontrol that hads 5 tabs, tab1, tab2, tab3, tab4, tab5.

each ultratab has its own ultragrid, 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 ultragrids with no rows to the end of the ultratabcontrol

Output:

 tab1, tab4, tab5, tab2, tab3.


Answers (3)