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.

Dynamically Loaded GroupBar/GroupView Items Event Handling

Thread ID:

Created:

Updated:

Platform:

Replies:

9643 Jan 5,2004 01:53 PM Jan 5,2004 03:12 PM Windows Forms 1
loading
Tags: Tools
Chris Ham
Asked On January 5, 2004 01:53 PM

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 03:12 PM

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

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.

;