开发者

Showing Gridview when no data present in VB.NET

I'm working on a ASP.NET website project using VB.NET as backend code. I was looking for a way to show the header/footer of a gridview even if no data is present.

I'd like to use this solution as it looks pretty clean (although it's written in C#): link

I have converted the code using an online tool, resulting in: http://pastebin.com/qy8a2ejA

This however shows an error on line 77: "Events cannot be declared with a delegate type that has a return type"

Can some开发者_如何转开发one help me convert this piece of code? Thanks :)


If you're using .NET 4, you could use this GridView.ShowHeaderWhenEmpty Property. As far as converting the code the VB .NET, take a look at this post.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜