Share via


ViewHeader Class

Works together with the SPGridView and SPGridViewPager controls to provide a SharePoint-like user experience for grid-based views of data that does not come from a Microsoft SharePoint Server 2010 list.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.TemplateControl
      System.Web.UI.UserControl
        Microsoft.SharePoint.WebControls.ViewHeader

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public MustInherit Class ViewHeader _
    Inherits UserControl
'Usage
Dim instance As ViewHeader
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class ViewHeader : UserControl

Remarks

These controls are frequently used for the management UI in both site settings and central administration settings.

The controls that SharePoint Server 2010 uses to draw grid-based views like “AllItems.aspx” can only display data from a real SharePoint Server 2010 list. These controls do not work with data that doesn’t come from a SharePoint Server 2010 list.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ViewHeader Members

Microsoft.SharePoint.WebControls Namespace