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 9202467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:15:56+00:00 2026-06-17T23:15:56+00:00

I am converting some classes from C# to VB.NET and this line can’t be

  • 0

I am converting some classes from C# to VB.NET and this line can’t be converted properly. I tried few online converters but they don’t seem to work.

this.mGrid.RowDataBound += new GridViewRowEventHandler(RowDataBoundHandler);

Converted VB.NET that does not work.

Me.mGrid.RowDataBound += New GridViewRowEventHandler(RowDataBoundHandler)

The following are the two errors I am getting from that. Can anyone help me out coz my brain is dead now.

Thanks,

Error 4 Delegate 'System.Web.UI.WebControls.GridViewRowEventHandler' requires an 'AddressOf' expression or lambda expression as the only argument to its constructor. C:\My Projects\PMS\App_Code\GridViewHelper.vb 110 62 C:\My Projects\PMS\

Error 3 'Public Event RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\My Projects\PMS\App_Code\GridViewHelper.vb 110 9 C:\My Projects\PMS\

  • 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-06-17T23:15:57+00:00Added an answer on June 17, 2026 at 11:15 pm

    Try using AddHandler if you want to bind the event manually:

    AddHandler Me.mGrid.RowDataBound, AddressOf RowDataBoundHandler
    

    Or you can bind the event in the ASPX markup:

    <asp:GridView ... RowDataBound="RowDataBoundHandler" runat="server" />
    

    Or use Tim Schmelter’s approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm converting some services from Apache SOAP to Axis2, so the Java service classes
I am having some difficulty converting this list of strings into a list of
I have some objective-c code I'm converting from iPhone to iPad. CFGregorianDate is used
I've been tasked with converting some text log files from a test reporting tool
I'm using mootools 1.4.3 for basic class inheritance. I'm actually converting some code from
i'm converting C++ to C++/CLI and would like to expose some managed classes as
I am planning on converting some longitude and latitude values to XML and then
I'm working on converting some NSURLConnection code over to AFNetworking and I'm seeing a
I'm currently converting some legacy code to create PDF files using iTextSharp. We're creating
I have been tasked with converting some scripts referencing an Informix database to be

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.