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.

GroupBarItemSelected event

Thread ID:

Created:

Updated:

Platform:

Replies:

53529 Dec 14,2006 04:06 PM Dec 14,2006 05:04 PM Windows Forms 1
loading
Tags: Tools
Muthu Kasiviswanathan
Asked On December 14, 2006 04:06 PM

Hi,

When a particular groupbar item is clicked I want to trigger an event. I tried:

private void grpBarParameters_GroupBarItemSelected(object sender, EventArgs e)
{
GroupBarItem item = sender as GroupBarItem;
if (item.Text == "Fleet")
{
//Do something
}
}

But it doesnt seem to work. Please help!

Gopalakrishnan S [Syncfusion]
Replied On December 14, 2006 05:04 PM

Hi Sagittarian,

Thanks for using Syncfusion products. Please use the following code for access the goupbarItem.

Here is the code snippet:

private void groupBar1_GroupBarItemSelected(object sender, EventArgs e)
{
GroupBar gbar = sender as GroupBar;
if(gbar.GroupBarItems[gbar.SelectedItem].Text =="GroupBarItem1")
MessageBox.Show("GroupBarItem1");
}

Please let me know if you have any other queries.

Regards,
S.Gopal.

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.

;