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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

tabbarsplitcontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

77596 Nov 8,2008 10:26 AM UTC Nov 26,2008 04:54 AM UTC General Discussion 3
loading
Tags: General Discussion
Administrator [Syncfusion]
Asked On November 8, 2008 10:26 AM UTC

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 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


Administrator [Syncfusion]
Replied On 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;


}


Administrator [Syncfusion]
Replied On November 26, 2008 04:54 AM UTC

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.

Warning Icon 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.Close Icon

;