一部のクラスを からC#
に変換していますVB.NET
が、この行を正しく変換できません。いくつかのオンライン コンバーターを試しましたが、うまくいかないようです。
this.mGrid.RowDataBound += new GridViewRowEventHandler(RowDataBoundHandler);
変換VB.NET
しても動かない。
Me.mGrid.RowDataBound += New GridViewRowEventHandler(RowDataBoundHandler)
以下は、そこから得られる2つのエラーです。私の脳が死んでしまったので、誰か助けてくれませんか。
ありがとう、
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\