我正在将一些类从C#
to转换为VB.NET
,此行无法正确转换。我尝试了一些在线转换器,但它们似乎不起作用。
this.mGrid.RowDataBound += new GridViewRowEventHandler(RowDataBoundHandler);
转换后VB.NET
不起作用。
Me.mGrid.RowDataBound += New GridViewRowEventHandler(RowDataBoundHandler)
以下是我从中得到的两个错误。谁能帮帮我,因为我的大脑现在已经死了。
谢谢,
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\