<Grid>
   <Cfg id="GanttTree"/>
   <Cfg Group="L" GroupMain="T" Sort="T"/> <!-- Displays tree in column T (Task / Subtask) -->
   <Cfg NumberId="1" IdChars="0123456789"/> <!-- Controls generation of new row ids -->
   <Cfg ScrollLeftLap="0"/> <!-- Saves horizontal scroll in Gantt to cookies -->
   <Cfg GroupMoveFree="2"/> <!-- Rows can be moved also as children to data rows, set it width DefParent and DefEmpty -->
   <Cfg Style="Office"/> <!-- Presets Office style -->
   <Def>
      <D Name="Task" Group="1"/> <!-- The Default "Task" will be used for grouping -->
      <D Name="Task" Expanded="1" Calculated="1" CalcOrder="S,E,C,G"/> <!-- Group of task calculates summary of the tasks -->
      <D Name="Task" SFormula="minimum(min('S'),min('E'))"/> <!-- Gets the first start date from its children -->
      <D Name="Task" EFormula="maximum(max('S'),max('E'))"/> <!-- Gets the last end date from its children -->
      <D Name="Task" CFormula="ganttpercent('S','E','d')"/> <!-- Calculates average task completion from its children -->
      <D Name="Task" GColor="240,240,240"/> <!-- Changes background color -->
      <D Name="Task" DButton=""/> <!-- Cannot change dependency of group task -->
      <D Name="Task" GGanttClass="GanttG" GGanttIcons="1" GGanttEdit="0" GGanttHover="0"/> <!-- Gantt setting specific for Group rows, changes colors and restrict changes by a user -->
      <D Name="Task" NoUpload="1"/> <!-- Does not upload this row to the server -->
      <D Name="R" DefParent="Task"/> <!-- Changes the parent row to group row when it gets its first child -->
      <D Name="R" DefEmpty="R"/> <!-- Changes the parent row to data row when it looses its last child -->
   </Def>
   <Panel Copy="7"/> <!-- Shows Add/Copy icon on left side panel -->
   <LeftCols>
      <C Name="id" Width="40" Type="Text" CanEdit="0"/> <!-- Row id, informational column -->
      <C Name="T" Width="150" Type="Text"/> <!-- Column Task / Section-->
      <C Name="S" Width="65" Type="Date" Format="MMM dd"/> <!-- Column Start date-->
      <C Name="E" Width="65" Type="Date" Format="MMM dd"/> <!-- Column End Date -->
      <C Name="C" Width="55" Type="Int" Format="##\%;;0\%"/> <!-- Column Complete -->
      <C Name="D" Width="50" Type="Text" CanEdit="0" Button="Defaults" Defaults="|*RowsColid*VariableDef" Range="1"/> <!-- Column dependencies (Next) -->
   </LeftCols>
   <Cols>
      <C Name="L" Width="120" CanEdit="0"/> <!-- Grouping levels definitions -->
      <C Name="L" CanGroup="2"/> <!-- Does not hide the column when is grouped by -->
      <C Name="L" GroupChar="/"/> <!-- The individual grouping level names are separated by '/' -->
      <C Name="L" GroupEmpty="0"/> <!-- Does not create groups for empty Levels -->
      
      <!-- Gantt chart column, basic settings -->
      <C Name="G" Type="Gantt"
         GanttStart="S" GanttEnd="E" GanttComplete="C" GanttDescendants="D" 
         GanttUnits="d" GanttChartRound="w" GanttEdit="Main,Dependency" GanttRight="1" GanttSlack="Slack"
         GanttHeader1="w#dddddd MMMM yyyy" GanttHeader2="d#ddddd" GanttBackground="w#1/6/2008~1/6/2008 0:01"
         />
   </Cols>
   <Header id="ID" T="Task" S="Start" E="End" C="Com&#x0a;plete" G="Gantt" D="Next" L="Tree Levels"/> <!-- Column captions -->
   
   <!-- Shows count of incorrect dependencies and on click corrects them -->
   <Toolbar Formula="ganttdependencyerrors(null,1)" FormulaOnClick="CorrectAllDependencies" FormulaTip="Click to correct the dependencies"/>

</Grid>