Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在自定义SPGridView上保留SharePoint显示格式_Sharepoint_Moss_Wss - Fatal编程技术网

在自定义SPGridView上保留SharePoint显示格式

在自定义SPGridView上保留SharePoint显示格式,sharepoint,moss,wss,Sharepoint,Moss,Wss,我在aspx页面中使用了SharePoint:SPGridView控件来显示我想要的数据(它就像两列网格一样简单,没有任何过滤/分组或其他功能) 但是如何继承格式,使SPGridView看起来像默认的sharepoint列表 现在显示为: 我找到了解决办法 我必须在aspx页面上添加对core.css文件的引用: <link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/core.css" />

我在aspx页面中使用了SharePoint:SPGridView控件来显示我想要的数据(它就像两列网格一样简单,没有任何过滤/分组或其他功能)

但是如何继承格式,使SPGridView看起来像默认的sharepoint列表

现在显示为:


我找到了解决办法

我必须在aspx页面上添加对core.css文件的引用:

<link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/core.css" />