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

Dynamically Loaded GroupBar/GroupView Items Event Handling

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!

1 Reply

CH Chris Ham January 5, 2004 08:12 PM UTC

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

Loader.
Up arrow icon