Share via


DataViewWebPart.PageType property

The web part's PAGETYPE. If the web part will appear on a form, then set this to one of PAGETYPE.PAGE_EDITFORM, PAGETYPE.PAGE_NEWFORM, PAGETYPE.DISPLAYFORM. If the web part will appear on a page as a view, then set this to PAGETYPE.NORMALVIEW, PAGETYPE.PAGE_VIEW, or PAGETYPE.PAGE_DEFAULTVIEW (PAGETYPE.PAGE_DEFAULTVIEW denotes this web part as being the default view for its SPList). Implementation is for IListWebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property PageType As PAGETYPE
    Get
    Set
'Usage
Dim instance As DataViewWebPart
Dim value As PAGETYPE

value = instance.PageType

instance.PageType = value
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public PAGETYPE PageType { get; set; }

Property value

Type: Microsoft.SharePoint.PAGETYPE
The web part's PAGETYPE.

Implements

IListWebPart.PageType

See also

Reference

DataViewWebPart class

DataViewWebPart members

Microsoft.SharePoint.WebPartPages namespace