TabControlAdv Change Order of TabPage

I am dynamically adding Tab Pages to a TabControlAdv, and would like to have the ability to change the order of the Tabs later on based on criteria I will collect from user input. I am unclear on the proper way to do this.


1 Reply

MJ Mano J Syncfusion Team May 30, 2008 03:55 AM UTC

Hi,

You have to clear the tabpages and re-add them in the desired order.


this.tabControlAdv1.TabPages.Clear();

this.tabControlAdv1.TabPages.AddRange(new TabPageAdv[]
{
this.tabPageAdv4,
this.tabPageAdv3,
this.tabPageAdv2,
this.tabPageAdv1
});



Thanks,
Mano


Loader.
Up arrow icon