开发者

Showing Gridview when no data present in VB.NET

开发者 https://www.devze.com 2023-02-27 01:09 出处:网络
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'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

精彩评论

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