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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamically Loaded GroupBar/GroupView Items Event Handling

Thread ID:





9643 Jan 5,2004 06:53 PM UTC Jan 5,2004 08:12 PM UTC WinForms 1
Tags: Tools
Chris Ham
Asked On January 5, 2004 06:53 PM UTC

We have created a table in a database that has a list of all of our group bar categories with a numeric ID. There is another table that holds the group view items which has an associated group ID. We are dynamically generating the GroupBar/GroupView by reading the information from the table. Everything is fine there. The only problem we have is handling the GroupViewItemSelected event. There are no design names for the group view since they are dynamically being created, so we cannot create specific handlers for each group view''s event. If we try to add a handler at the time the information is pulled in, we cannot retrieve any information about which one was selected through the EventArgs. Any suggestions would be very helpful! Thank You!

Chris Ham
Replied On January 5, 2004 08:12 PM UTC

Nevermind. Turning Option Strict Off, we can get the sender.SelectedItem since it binds it at runtime.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon