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.
Unfortunately, activation email could not send to your email. Please try again.

tabbarsplitcontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

77596 Nov 8,2008 05:26 AM Nov 25,2008 11:54 PM General Discussion 3
loading
Tags: General Discussion
Administrator [Syncfusion]
Asked On November 8, 2008 05:26 AM

how to get the name of gridcontrol active in a tabbarsplitcontrol and what type of variable affect ? thanks


Administrator [Syncfusion]
Replied On November 12, 2008 02:28 AM

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


Administrator [Syncfusion]
Replied On November 17, 2008 09:05 AM

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;


}


Administrator [Syncfusion]
Replied On November 25, 2008 11:54 PM

Hi,

Thanks for the update.

Please let me know if you have any further questions.

Regards,
Jaya


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;