A newer version of this page is available. Switch to the current version.

ASPxTabControlBase.ActiveTabIndex Property

Gets or sets the index of a tab (tabbed page) which is selected within the control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public int ActiveTabIndex { get; set; }
Public Property ActiveTabIndex As Integer

Property Value

Type Default Description


An integer value specifying the index of an active tab (tabbed page) within the control's ASPxTabControl.Tabs (ASPxPageControl.TabPages) collection.


A tab control (which can be either the ASPxTabControl or ASPxPageControl) allows end users to select tabs via mouse clicks. In order to make a particular tab (tabbed page) active via code use the ActiveTabIndex property. This property specifies the active tab's index within the ASPxTabControl.Tabs (ASPxPageControl.TabPages) collection of a tab control.

Note that a tab control always has an active tab and only one tab can be active within a tab control at a time.

You can also use the ASPxTabControl.ActiveTab (ASPxPageControl.ActiveTabPage) property to access and change an active tab (tabbed page) within a tab control.


The complete sample project is available in the DevExpress Code Central database at E483.

         <dxtc:ASPxPageControl ID="ASPxPageControl1" runat="server" 
         ActiveTabIndex="0" ClientInstanceName="pageControl">
                 <dxtc:TabPage Text="Tab 1">
                         <dxw:ContentControl runat="server">
                          <dxe:ASPxCheckBox ID="ASPxCheckBox1" runat="server" Text="Show Tab 2">