<Grid>
   <Cfg id="CellManipulation" 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  -->

   <!-- Permits manipulation -->
   <Cfg ColAdding="1"/> <!-- Permits adding new columns. Adding and copying rows and copying columns is permitted by default -->
   <Cfg ColDeleting="1"/> <!-- Permits deleting columns. Deleting rows is permitted by default -->
   <Cfg SelectingCols="1"/> <!-- Permits selecting the whole columns. Selecting rows is permitted by default -->
   <Cfg SelectAllType="31"/> <!-- Makes the SelectAll button on panels a switch; it is changed also when the row/column is selected/unselected; the added rows/columns are automatically selected if it is on -->

   <!-- Cell popup menu to manipulate cells -->
   <Cfg Menu="|ClearCell|ClearValue|ClearStyle|-|Split|Span|-|SetBorder|SetBorderOut|SetBorderIn|ClearBorder"/>
   <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="3"/> <!-- Permits selecting cells and row/columns independently, the row and column actions manipulate only whole selected rows and columns -->
   <Cfg SelectingFocus="1"/> <!-- 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 -->

   <!-- Settings for cell span, borders and mass changes -->
   <Cfg EditAttrs=",Span,RowSpan,BorderTop,BorderRight,BorderBottom,BorderLeft"/> <!-- 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 -->
   
   <!-- The fixed rows and column - panels, indexes and ids -->
   <Head>
      <Header id="Header" Index="Index" Align="Center" idVisible="0" CanHide="1"/> <!-- Centers all cells in header -->
      <Panel id="Panel" Panel="Panel" PanelType="Text" idVisible="0"/> <!-- Adds panel for columns -->
      <Panel id="Panel" Index="ColSelectAll,ColDeleteAll,ColCopyAll"/> <!-- Defines group column actions for the left index panel -->
      <Panel id="Panel" OnClickPanelColDelete="ShowMenu OR ShowNoMenu" 
         PanelColDeleteMenu="|ClearCellC|ClearValueC|ClearStyleC|-|ShowColLeft|ShowColRight|HideCols|DeleteCol|UndeleteCol|RemoveCol"/> <!-- Defines menu for the column delete button -->
      <Panel id="Panel" OnClickPanelColDeleteAll="ShowMenu OR ShowNoMenu" 
         PanelColDeleteAllMenu="|ClearCellSC|ClearValueSC|ClearStyleSC|-|ClearCellW|ClearValueW|ClearStyleW|-|ShowColsS|ShowColsW|HideColsS|DeleteSelectedCols|UndeleteSelectedCols|RemoveSelectedCols"/> <!-- Defines menu for the column delete all button -->
      <Panel id="Panel"
         PanelColCopyMenu="CopyCol,CopySelectedCols,-,AddCol,AddSelectedCols@2"
         PanelColCopyAllMenu="CopyCol,CopySelectedCols,-,AddCol,AddSelectedCols@2,AddColEnd"
         />
   </Head>
   <Foot>
      <I id="ID" Index=" " PanelType="Text" Panel="Name" ShowColNames="1" CanFocus="0"/> <!-- Informational bottom row with column names -->
   </Foot>
   <LeftCols>
      <C Name="Index" Def="Index" Width="60" Resizing="1"/> <!-- Defines with of the Index column and lets resizing rows by it -->
      <Panel Name="Panel" Copy="1"/> <!-- Places the panel right side to Index and shows add/copy button on it -->
      <Panel Name="Panel" OnClickPanelDelete="ShowMenu OR ShowNoMenu" 
         PanelDeleteMenu="|ClearCellR|ClearValueR|ClearStyleR|-|ShowRowAbove|ShowRowBelow|HideRows|DeleteRow|UndeleteRow|RemoveRow"/> <!-- Defines menu for the row delete button -->
      <Panel Name="Panel" OnClickPanelDeleteAll="ShowMenu OR ShowNoMenu" 
         PanelDeleteAllMenu="|ClearCellSR|ClearValueSR|ClearStyleSR|-|ClearCellW|ClearValueW|ClearStyleW|-|ShowRowsS|ShowRowsW|HideRowsS|DeleteSelected|UndeleteSelected|RemoveSelected"/> <!-- Defines menu for the row delete all button -->
      <Panel Name="Panel"
         PanelCopyMenu="CopyRow,CopySelected,-,AddRow,AddSelected@2"
         PanelCopyAllMenu="CopyRow,CopySelected,-,AddRow,AddSelected@2,AddRowEnd"
         />
   </LeftCols>
   <RightCols>
      <C Name="id" Width="40" CanFocus="0" CanSelect="0" CanDelete="0" Align="Center" NoBorder="3" NoStyle="2" NoFormat="2" NoData="1"/> <!-- Informational right column with row ids -->
   </RightCols>
   <Toolbar CanHide="1"/> <!-- Permits showing and hiding bottom toolbar from popup menu -->
   <Lang> <!-- Updates names of actions used in panel menu -->
      <MenuCell
         ClearCellR="Clear row cells" ClearValueR="Clear row values" ClearStyleR="Clear row styles"
         ClearCellSR="Clear rows cells" ClearValueSR="Clear rows values" ClearStyleSR="Clear rows styles"
         ClearCellC="Clear column cells" ClearValueC="Clear column values" ClearStyleC="Clear column styles"
         ClearCellSC="Clear columns cells" ClearValueSC="Clear columns values" ClearStyleSC="Clear columns styles"
         ClearCellW="Clear all cells" ClearValueW="Clear all values" ClearStyleW="Clear all styles"
         HideRowsS="Hide %1 selected rows" HideColsS="Hide %1 selected columns"
         />
   </Lang>

   <!-- Sample data -->
   <Cfg AutoCols="20"/>
   <Body>
      <B>
         <I/>
         <I/>
         <I C="C3" D="D3" E="E3" F="F3" G="G3" H="H3"/>
         <I C="C4" D="D4" E="E4" F="F4" G="G4" H="H4" 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" 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" H="H6" CBorderTop="3,black" DBorderTop="3,black" EBorderTop="3,black" FBorderTop="3,black" GBorderTop="3,black" HBorderTop="3,black"/>
         <I C="C7" D="D7" E="E7" F="F7" G="G7" H="H7"/>
         <I/>
         <I/>
      </B>
   </Body>
   <Cfg FocusedRect="3,C,6,G"/>
   </Grid>