开发者

GridViewHelper is not recognised in VS 2010 when I use VB.Net

开发者 https://www.devze.com 2023-02-22 06:01 出处:网络
I have a gridview and I\'d like to summarise data in it and I found some code to help me do that on the following websi开发者_StackOverflow社区te: http://www.agrinei.com/gridviewhelper/gridviewhelper_

I have a gridview and I'd like to summarise data in it and I found some code to help me do that on the following websi开发者_StackOverflow社区te: http://www.agrinei.com/gridviewhelper/gridviewhelper_en.htm.

The thing is, when I tried to convert and use it in my program, GridViewHelper just refused to be recognised and so, now I'm stuck. Please let me know the right procedure to implement the same in VB. Thanks!


It seems like the converter had some problem. Try rename the method

Public Sub GridViewHelper(ByVal grd As GridView, ByVal useFooterForGeneralSummaries As Boolean, ByVal groupSortDirection As SortDirection)

Like the following

Public Sub New(ByVal grd As GridView, ByVal useFooterForGeneralSummaries As Boolean, ByVal groupSortDirection As SortDirection)

Because the constructor in C# is the class name itself, but in VB.Net its new only.

0

精彩评论

暂无评论...
验证码 换一张
取 消