We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to sort tab pages in TabControlAdv?

(Using v3.2.1) I would like to programmatically adjust the sequence of tab pages in a tab control AFTER the tab pages have been loaded. Is there any way to do this besides removing and re-adding the pages to the tab control? Thanks, s.s.

1 Reply

MJ Mano J Syncfusion Team October 22, 2005 06:51 AM UTC

Hi Steve, The TabPages gets arranged in the order as they are added. To change the sequence of pages, you have to clear the tabPages and re-add them in the order you desired as shown in the following code snippet this.tabControlAdv1.TabPages.Clear(); this.tabControlAdv1.Controls.AddRange(new System.Windows.Forms.Control[] { this.tabPageAdv1, this.tabPageAdv3, this.tabPageAdv5, this.tabPageAdv4, this.tabPageAdv2}); Please refer to the sample attached that illustrates this issue and let me know if you have any questions. Thanks for using Syncfusion products. Regards, Mano F36196.zip

Loader.
Live Chat Icon For mobile
Up arrow icon