Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7658201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:10:15+00:00 2026-05-31T13:10:15+00:00

I have a nested listview which I databind on the parent ‘ItemDataBound’ event, but

  • 0

I have a nested listview which I databind on the parent ‘ItemDataBound’ event, but how do i access/register the nested listview’s itemdatabound event?

Thanks!

Edits

My parent listview itemdatabound now looks like so,

Protected Sub lvwManagePolicy_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.ListViewItemEventArgs) Handles lvwManagePolicy.ItemDataBound

    If e.Item.ItemType = ListViewItemType.DataItem Then
        Dim rv As DataRowView = CType(e.Item.DataItem, DataRowView)

        Me.dsAccoutnTransactionHistory = Wrap.getWrapAccountTransactionHistory(rv!PLATFORM_ID, False)
        Dim lvwTransactionHistory As ListView = DirectCast(e.Item.FindControl("lvwTransactionHistory"), ListView)
        lvwTransactionHistory.ItemDataBound += New EventHandler(Of ListViewItemEventArgs)(lvwTransactionHistory_ItemDataBound)
        lvwTransactionHistory.DataSource = dsAccoutnTransactionHistory
        lvwTransactionHistory.DataBind()
    End If

End Sub

but i get an error

BC32022: ‘Public Event ItemDataBound(sender As Object, e As
System.Web.UI.WebControls.ListViewItemEventArgs)’ is an event, and
cannot be called directly. Use a ‘RaiseEvent’ statement to raise an
event.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:10:16+00:00Added an answer on May 31, 2026 at 1:10 pm

    Before assigning the data to nested control in your parent control you can register the event like below under your parent ItemBoundData

    ListView f = new ListView();
    f.ItemDataBound += new EventHandler<ListViewItemEventArgs>(f_ItemDataBound);
    
    protected void f_ItemDataBound(object sender, ListViewItemEventArgs e)
    {
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a number of tables, which have nested tables. I using jQuery to
I have a nested movie clip instance that I want to access. The path
We have nested folders with parent-child relationship. We use MySQL MyISAM DB. The data
I have nested quotes enabled in my private message system, but now I want
I have a ListView with SimpleCursorAdapter. The layout was using a LinearLayout, but when
I have nested groupboxes, which logically represent nested data structures in my application. Let's
I have a nested GridView that is placed inside a ListView. The GridView renders
I have nested li, which is for horizontal subnav menu. I am trying to
I have nested attributes for say comment. The parent class is post. <% form_for
This is the scenario: I have a web page with a ListView lv_create_claim which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.