The Dataview webpart is customized by converting it to XSLT Data View.
To apply border for the XSLT Data View table using SharePoint Designer.
In Designer, locate the table tag in the Web Part source view
<TABLE ID="{$List}-{$View}" Summary="{$List}" xmlns:o="urn:schemas-microsoft-com:office:office" o:WebQuerySourceHref="{$HttpPath}&XMLDATA=1&RowLimit=0&View={$View}" width="100%" class="ms-listviewtable" border="0"
Update the border="1" and also other changes based on your requirement, refer to the following post for more information about the table styles
http://www.htmlcodetutorial.com/tables/index_famsupp_147.html
If you applying the border for both rows and column, you'll see the border missing in the empty fields. You need to replace the empty fields with white-space.
" " will not work in XSLT, instead you can use
To apply border for the XSLT Data View table using SharePoint Designer.
In Designer, locate the table tag in the Web Part source view
<TABLE ID="{$List}-{$View}" Summary="{$List}" xmlns:o="urn:schemas-microsoft-com:office:office" o:WebQuerySourceHref="{$HttpPath}&XMLDATA=1&RowLimit=0&View={$View}" width="100%" class="ms-listviewtable" border="0"
Update the border="1" and also other changes based on your requirement, refer to the following post for more information about the table styles
http://www.htmlcodetutorial.com/tables/index_famsupp_147.html
If you applying the border for both rows and column, you'll see the border missing in the empty fields. You need to replace the empty fields with white-space.
" " will not work in XSLT, instead you can use
 
No comments:
Post a Comment