Format element

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Contains definitions of column and row formatting that are used in a Datasheet view.

<Format
  Name = "Text">
    <FormatDef
      Type = "Text"
      Value = "Text">
        </FormatDef>
    ...
</Format>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
Name
Required Text. Contains the name of the field to which the format applies.

Child elements

Parent elements

Occurrences

  • Minimum: 0
  • Maximum: Unbounded

Example

The following example shows the definitions of column and row formatting used in a Datasheet view.

<Formats>
   <FormatDef Type="RowHeight" Value="67" />
   <Format Name="Attachments">
      <FormatDef Type="ColWidth" Value="75" />
   </Format>
   <Format Name="LinkTitle">
      <FormatDef Type="WrapText" Value="1" />
      <FormatDef Type="ColWidth" Value="236" />
   </Format>
</Formats>