AD
Administrator
Syncfusion Team
November 12, 2008 07:28 AM UTC
Hi,
Thank you for using Syncfusion products.
Please use the below codesnippet to display the active control name in the TabBarSplitterControl. The ActivePage determines which tabBarPage is Active. The variable c is affected.
[C#]
foreach (TabBarPage page in this.tabBarSplitterControl1.TabBarPages)
if (this.tabBarSplitterControl1.ActivePage == page)
{
foreach (Control c in page.Controls)
{
if (c != null || c is GridControl)
{
Console.WriteLine(c.Name.ToString());
}
}
}
Please let me know if this helps you.
Regards,
Jaya
AD
Administrator
Syncfusion Team
November 17, 2008 02:05 PM UTC
Thank you very much for the solution
I also found another solution very easy, I post if you do not know.
private void tabBarSplitterControl1_ActivePageChanged(object sender, ControlEventArgs e)
{
if ((tabBarSplitterControl1.ActivePage) == tabBarPage1) grid1 = gridControl1;
}
AD
Administrator
Syncfusion Team
November 26, 2008 04:54 AM UTC
Hi,
Thanks for the update.
Please let me know if you have any further questions.
Regards,
Jaya