Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
How to re-order tabs
posted

Is there a way to programatically re-order the tabs on an UltraTab control?

 So far, the only way I have found is to remove the tab, then insert the tab at the desired location.  The issue is that I then have to recreate all the controls that were on the tab.

All I really want to do is swap the positions of two tabs.

Thanks,

 Greg

Parents
  • 310
    Verified Answer
    posted

    I found a method of an UltraTab called Reposition that works for me.

    UltraTab tab = this.ultraTabControl1.SelectedTab;

    if (tab != null) {

    UltraTab firstTab = this.ultraTabControl1.VisibleTabs[0];

    if (firstTab != null) {

    tab.Reposition(firstTab, Infragistics.Win.RelativePosition.Before);

    }

    }

Reply Children
No Data