ViewHeader Element
The ViewHeader element defines how the headers, or prefixes, of view fields are rendered.
Syntax
<ViewHeader
ExpandXML = "TRUE" | "FALSE">
</ViewHeader>
Attributes
Name | Description |
---|---|
ExpandXML | Optional Boolean. TRUE if the rendered content is passed again through the CAML interpreter, which allows CAML to render CAML. |
Related Elements
Parent Elements | Child Elements |
---|---|
View | Fields, HTML, LocaleInfo, ScriptQuote, SetVar, WebQueryInfo |
Remarks
Typically, this element contains an HTML fragment with ExpandXML set to TRUE to render embedded Field elements.
Example
The following example defines the field headers for a view. Each field header in the view is rendered according to the class "ms-vh" defined in OWS.CSS (wwwroot\_layouts\styles).
<ViewHeader>
<HTML>
<![CDATA[ <TABLE ID="onetidDoclibViewTbl0 ]]>
</HTML>
<HTML>
<![CDATA[ " width="100%" border=0 cellspacing=0 cellpadding=1 rules=rows><TR VALIGN=TOP><FORM> ]]>
</HTML>
<Fields>
<HTML>
<![CDATA[ <TH class="ms-vh"> ]]>
</HTML>
<Field />
<HTML>
<![CDATA[ </TH> ]]>
</HTML>
</Fields>
<HTML>
<![CDATA[ </FORM></TR> ]]>
</HTML>
</ViewHeader>