Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ListViewWebPart.ViewType property

Gets or sets the type of view to display in this Web Part.

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

public ViewType ViewType { get; set; }

Property value

Type: Microsoft.SharePoint.WebPartPages.ViewType
Value from the Microsoft.SharePoint.WebPartPages.ViewType enumeration.

The ViewType property is read/write.

© 2015 Microsoft