Is there a way to use the GetTab function with the tab key instead of index number? I want to use a function similiar to this:
Me.uwtTabs.Tabs.FromKey("Holdings").Visible = True
Me.uwtTabs.Tabs.GetTab(9).ContentPane.TargetUrl = cHoldings
but this will break if I ever add or delete a tab before tab 9.
HI,
Both the GetTab and FromKeyTab methods returns a tab.
The FromKeyTab suites your needs perfectly.
UltraWebTab1.Tabs.FromKeyTab("Holding").ContentPane.TargetUrl = "Default2.aspx";
the GetTab method needs to be passed an index.
Here is a help link for the Tabs Class:http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.UltraWebTab.v8.1~Infragistics.WebUI.UltraWebTab.Tabs_members.html
Here is a help link to the GetTab Method:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.UltraWebTab.v8.1~Infragistics.WebUI.UltraWebTab.Tabs~GetTab.html
here is the help link to the FromKeyTab:http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.UltraWebTab.v8.1~Infragistics.WebUI.UltraWebTab.Tabs~FromKeyTab.html
Thanks. This is exactly what I needed.