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

GroupBarItemSelected event

Thread ID:

Created:

Updated:

Platform:

Replies:

53529 Dec 14,2006 09:06 PM UTC Dec 14,2006 10:04 PM UTC WinForms 1
loading
Tags: Tools
Muthu Kasiviswanathan
Asked On December 14, 2006 09:06 PM UTC

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 10:04 PM UTC

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.

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

;