简体   繁体   English

空共享点spgridview

[英]Empty sharepoint spgridview

I am using an SPGridView to create lists with custom data in a sharepoint website. 我正在使用SPGridView在共享点网站中创建具有自定义数据的列表。

When the list has no data, the list headers get hidden and the following message appears: 当列表中没有数据时,列表标题将被隐藏,并显示以下消息:

There are no items to show in this view. 此视图中没有要显示的项目。

How can I still show the headers if there are no items in the list? 如果列表中没有项目,如何仍显示标题?

Thanks 谢谢

SPGridView继承自GridView ,您可以使用EmptyDataTemplate ,在其中可以覆盖默认行为并执行所需的任何操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM