Friday, 14 March 2014

sharepoint Data view web part remove new item option

Data view web part sharepoint 2010 remove new item option
Open webpart page in SharePoiunt designer which is having Data View webpart.
You will find this section:
<SharePoint:StyleBlock runat="server">
If not add below tag inside <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:StyleBlock runat="server">
td.ms-addnew { display:none; }
</SharePoint:StyleBlock>
Save
New item will remove from data view web part