I am using an SPGridView to create lists with custom data in a sharepoint website.
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
,在其中可以覆盖默认行为并执行所需的任何操作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.