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)

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public MustInherit Class ViewHeader _
    Inherits UserControl
'Usage
Dim instance As ViewHeader
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, 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