<Grid>
   <Cfg id="CellStyle" SuppressCfg="1" Sorting="0"/> <!-- Suppresses configuration and sorting -->
   <Cfg SuppressMessage="3"/> <!-- Suppresses all messages, including page messages -->
   <Cfg AutoIdPrefix=""/> <!-- Prefix for automatically generated row id, here set empty instead of AR -->

   <!-- Automatic column and row pages -->   
   <Cfg Paging="2" AutoPages="1" PageLength="10" MaxPages="3" RemoveUnusedFixed="0" RemoveAutoPages="1"/> <!-- Defines automatic row pages -->
   <Pager Visible="0"/> <!-- Hides the side pager that is shown for paging by default -->
   <Cfg ColPaging="2" AutoColPages="1" ColPageLength="10" ColPageMin="0" MaxColPages="3" ColPagingFixed="0" RemoveAutoColPages="1"/> <!-- Defines automatic column pages -->

   <!-- Defines row and column indexes -->
   <Cfg RowIndex="Index" RowIndexType="6"/> <!-- Creates number RowIndex with all variable rows except deleted -->
   <Cfg ColIndex="Header" ColIndexType="6" ColIndexChars="ABCDEFGHIJKLMNOPQRSTUVWXYZ"/> <!-- Creates letter ColIndex with all variable columns except deleted  -->

   <!-- Cell popup menu to manipulate cells and their styles -->
   <Cfg Menu="{Items:[
      {Name:'Edit',Menu:1,Items:'|SetEditable|SetReadOnly|SetPreview|ClearEditable|-|Lock0|Lock1|Lock2|Lock3'},
      {Name:'Clear',Menu:1,Items:'|ClearValueStyle|ClearValue|ClearStyle'},
      {Name:'Span',Menu:1,Items:'|Span|Split'},
      {Name:'Border',Menu:1,Items:'|SetBorder|ClearBorder|-|ChooseBorderStyle|ChooseBorderEdge|ChooseBorderColor'},
      {Name:'Style',Menu:1,Items:'|BoldOn|BoldOff|ItalicOn|ItalicOff|UnderlineOn|UnderlineOff|StrikeOn|StrikeOff|OverlineOn|OverlineOff|-|SetTextLine|ChooseTextLine|NoTextLine|-|SmallCapsOn|SmallCapsOff|Superscript|Subscript|Noscript|-|NoTextStyle'},
      {Name:'Font',Menu:1,Items:'|SetTextFont|NoTextFont|ChooseTextFont|-|SetTextSize|NoTextSize|ChooseTextSize|-|IncreaseTextSize|DecreaseTextSize'},
      {Name:'Color',Menu:1,Items:'|SetTextColor|NoTextColor|ChooseTextColor|-|SetTextShadow|NoTextShadow|ChooseTextShadow|-|SetTextShadowColor|NoTextShadowColor|ChooseTextShadowColor'},
      {Name:'Background',Menu:1,Items:'|SetColor|NoColor|ChooseColor|-|SetPattern|ChoosePattern|NoPattern|-|SetPatternColor|ChoosePatternColor|NoPatternColor'},
      {Name:'Align',Menu:1,Items:'|AlignLeft|AlignRight|AlignCenter|NoAlign|-|VertAlignTop|VertAlignBottom|VertAlignMiddle|NoVertAlign'},
      {Name:'Direction',Menu:1,Items:'|RotateLeft|RotateLeft30|RotateLeft45|RotateLeft60|RotateLeft90|RotateLeftVert|RotateRight|RotateRight30|RotateRight45|RotateRight60|RotateRight90|RotateRightVert|NoRotate|-|WrapOn|WrapOff|NoWrap'},
      {Name:'Text',Menu:1,Items:'|ShowCalendar|-|UpperCase|LowerCase|-|ShowLink|SetLink|ClearLink'},
      ]}"/>
   <Cfg ShowMenuSingle="1"/> <!-- shows menu also with single option instead of doing it immediately -->
   <Cfg HideMenuUnused="1"/> <!-- Hide unused child items, disable parent items with no child items -->
   <Actions OnRightClick="ShowPopupMenu OR ShowNoMenu"/> <!-- Shows the popup menu for any right click to the grid -->

   <!-- Other settings often set in the sheets -->
   <Cfg Undo="79"/> <!-- Permits undoing all actions, including scroll -->
   <Cfg EnterMode="1"/> <!-- Enter moves cursor down -->
   <Cfg FocusRect="31"/> <!-- Permits focusing cell range, shows the corner, hides focused cursor for the whole row, shows relative color for focused cell, permits move and copy the focused range by dragging. -->
   <Cfg SelectingCells="4"/> <!-- Permits selecting cells and row/columns independently, but uses it together -->
   <Cfg SelectingCols="1"/> <!-- Permits selecting whole columns -->
   <Cfg SelectingFocus="5"/> <!-- Automatically selects the focused cells and clears all other selected cells on focus change -->
   <Cfg AutoFillType="31"/>  <!-- Permits auto filling numbers and strings, also from one cell, shrinking range clears the rest -->
   <Actions OnDel="ClearSelectedCellsF OR ClearCellF"/> <!-- Clears the selected cells -->
   <Actions OnClickNoFocus="AcceptEdit,0"/> <!-- Locked cells cannot changed focus -->

   <!-- Dynamic style -->
   <Cfg DynamicStyle="2"/>    <!-- Permits to set and change the style attributes for individual cells -->
   <Cfg DynamicEditing='1'/>  <!-- Permits changing editing permissions -->

   <!-- Settings for cell span, borders and mass changes -->
   <Cfg EditAttrs=",CanEdit,Span,RowSpan,BorderTop,BorderRight,BorderBottom,BorderLeft,Wrap,Align,VAlign,Rotate,Color,TextColor,TextStyle,TextSize,TextFont,TextShadow,TextShadowColor"/> <!-- What will be affected by mass change like clear or move focus; the first empty item means value -->
   <Cfg DynamicSpan="2"/> <!-- Permits dynamic spanning and splitting spanned cells -->
   <Cfg DynamicBorder="1"/> <!-- Permits dynamic change of cell borders, only for variable rows and middle columns -->
   <Cfg SpannedBorder="3"/> <!-- Update border in spanned cells to better displayed -->
   <Cfg BorderType="0"/> <!-- Set borders only in visible, not deleted cells -->
   <Cfg SelectHidden="0"/> <!-- Select only visible, not deleted cells -->
   <Cfg MoveFocusType="11"/> <!-- Ignore span in cells when moving focused range by dragging -->

   <!-- Settings for copying and pasting cells via clipboard -->
   <Cfg CopyCols="0"/> <!-- Copy only focused cells -->
   <Cfg ExcludeClear="1"/> <!-- CtrlX clears the copied cells -->
   <Cfg PasteCols="5"/> <!-- Pastes to focused cell range or to focused and next columns-->
   <Cfg PasteFocused="11"/> <!-- Pastes to focused cell range or to focused and next rows -->
   
   <Panel Visible="0"/> <!-- Hides row panel, its features are not demonstrated here -->
   <DefCols> <D Name="Auto" Width="60" VarHeight="1"/> </DefCols> <!-- Default width of all column -->

   <LeftCols>
      <!-- Left fixed column with row numbers. It is named id to show row id attribute -->
      <C Name="Index" Def="Index"/>                <!-- Uses default for the RowIndex column -->
      <C Name="Index" Align="Center"/>             <!-- The numbers are horizontally centered -->
      <C Name="Index" Resizing="1"/>               <!-- Permits resizing rows by dragging top or bottom edge of cells in this column -->
      <C Name="Index" MenuName="Row numbers"/>     <!-- Under this name is the column shown in print and other columns menus-->
      <C Name="Index" CanPrint="2"/>               <!-- The column is printed on every horizontal page, not only on the first one -->
      <C Name="Index" CanExport="0"/>              <!-- The column is not exported to XLS -->
      <C Name="Index" OnClickContent="FocusWholeRowA"/>    <!-- Focus the whole row on click to the cell -->
      <C Name="Index" OnCtrlClick="SelectRow"/>    <!-- Select the whole row on ctrl click to the cell -->
      <C Name="Index" OnShiftClick="FocusRowRange"/> <!-- Focuses whole rows between focused and clicked row -->
      <C Name="Index" OnDragCell="ChooseRowsReplaceAll OR FocusRows"/>    <!-- Dragging index during formula edit will choose the rows to the range, other dragging focuses whole rows -->
      <C Name="Index" OnCtrlDrag="ChooseRowsInsert OR SelectRows"/>   <!-- Dragging index during formula edit will choose the rows to the range, other dragging selects whole rows -->
      <C Name="Index" OnShiftDrag="ChooseRowsInsert OR DragSelected OR DragRow"/> <!-- Dragging with shift will move the rows(s) -->
      <C Name="Index" OnShiftCtrlDrag="ChooseRowsInsert OR DragSelectedCopy OR DragCopy"/> <!-- Dragging with ctrl and shift will copy the rows(s) -->
   </LeftCols>

   <!-- Top fixed header with column names. It is TreeGrid default header -->
   <Header IndexVisible=""/>                    <!-- Hides cell value in the top left cell -->
   <Header IndexOnClickSide="FocusWholeGrid"/>  <!-- Focus the whole grid on click to the top left cell -->
   <Header Align="Center"/>                     <!-- All the header cell values are horizontally centered -->
   <Header SortIcons="2"/>                      <!-- Hides the TreeGrid sorting icons -->
   <Header CanExport="0"/>                      <!-- The header is not exported to XLS -->
   <Header MenuName="Column letters"/>          <!-- Under this name is the row shown in print and other columns menus-->
   <Header OnClickCell="FocusWholeColA,1"/>     <!-- Focus the whole column on click to the cell -->
   <Header OnCtrlClick="SelectCol"/>            <!-- Selects the whole column on ctrl click to the cell -->
   <Header OnShiftClick="FocusColRange"/>       <!-- Focus column range between focused and clicked cell -->
   <Header OnDragHeader="FocusCols"/>           <!-- Dragging header will focus the whole columns -->
   <Header OnCtrlDrag="SelectCols"/>            <!-- Dragging header will select the whole columns -->
   <Header OnShiftDrag="ColMoveSelected OR ColMove"/> <!-- Dragging with shift will move the column(s) -->
   <Header OnShiftCtrlDrag="ColCopySelected OR ColCopy"/> <!-- Dragging with ctrl and shift will copy the column(s) -->

   <!-- Splits toolbar to two rows -->
   <Solid>
      <Toolbar id="Toolbar1" Kind="Toolbar1" Mirror="Toolbar" Cells40Sheet="" Visible="1"/>
      <Toolbar id="Toolbar2" Kind="Toolbar2" Mirror="Toolbar" Cells20Data="" Cells30Manipulate="" Cells60Cfg="" Cells70Styles="" Visible="1"/>
      <Toolbar id="Toolbar" Visible="0" CanHide="0"/>
   </Solid>

   <!-- Sample data -->
   <Cfg AutoCols="20"/>
   <Cfg FocusedRect="3,C,7,I"/>
   <Body>
      <B>
         <I/>
         <I/>
         <I C="C3" D="D3" E="E3" ERotate="1" F="F3" G="G3" H="H3" FTextFont="serif" GTextSize="24" GTextStyle="1" HTextStyle="6" I="ABCDEFG 1234567890 abcdefgh" IWrap="1"/>
         <I C="C4" D="D4" E="E4" F="F4" G="G4" H="H4" HTextShadowColor="red" DSpan="3" DRowSpan="2" DBorderLeft="1,black" DBorderTop="1,black" EBorderTop="1,black" FBorderTop="1,black" FBorderRight="1,black"/>
         <I C="C5" D="D5" E="E5" F="F5" G="G5" H="H5" HTextShadow="8" HTextShadowColor="red" DBorderLeft="1,black" DBorderBottom="1,black" EBorderBottom="1,black" FBorderBottom="1,black" FBorderRight="1,black"/>
         <I C="C6" D="D6" E="E6" F="F6" G="G6" GCanEdit="0" H="H6" HCanEdit="2" HTextShadow="9" CBorderTop="3,black" DBorderTop="3,black" EBorderTop="3,black" FBorderTop="3,black" GBorderTop="3,black" HBorderTop="3,black"/>
         <I C="C7 XXXX AAAA BBBB" Wrap="1" D="D7" E="E7" F="F7" G="G7" H="H7" CTextShadow="9" CTextShadowColor="red" DBorderBottom="3,blue,1" EColor="#F88" ETextColor="white"/>
      </B>
   </Body>
   </Grid>