<Grid>
   <Cfg id="GanttSimple" MainCol="T"/> <!-- Displays tree in column T (Task / Subtask) -->
   <Cfg FullId="1" NumberId="1" IdChars="0123456789"/> <!-- Controls generation of new row ids -->
   <Cfg Style="Borders"/> <!-- Presets Borders style -->
   <Cfg MaxHeight="1"/> <!-- Resizes the grid to the whole page -->
   <Cfg ScrollLeftLap="0"/> <!-- Saves horizontal scroll in Gantt to cookies -->
   <Def>
      <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" 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 -->
   </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="140" Type="Text"/> <!-- Column Task / Section-->
      <C Name="S" Width="60" Type="Date" Format="MMM dd"/> <!-- Column Start date-->
      <C Name="E" Width="60" Type="Date" Format="MMM dd"/> <!-- Column End Date -->
      <C Name="C" Width="40" Type="Float" Format="##.##\%;;0\%"/> <!-- Column Complete -->
      <C Name="D" Width="65" Type="Text" CanEdit="0" Button="Defaults" Defaults="|*RowsColid*VariableDef" Range="1"/> <!-- Column dependencies (Next) -->
    </LeftCols>
   <Cols>
      <!-- Gantt chart column -->
      <C Name="G" Type="Gantt"
         GanttStart="S" GanttEnd="E" GanttComplete="C" GanttDescendants="D"
         GanttUnits="d" GanttChartRound="w" GanttEdit="Main,Dependency"
         GanttRight="1" GanttSlack="Slack"
         GanttBackground="1/6/2008~1/6/2008 0:01" GanttBackgroundRepeat="w"
         GanttHeader1="w#dddddd MMMM yyyy"
         GanttHeader2="d#ddddd"
         />
      <C Name="G" GanttCorrectDependenciesFixed="1"/> <!-- Never moves the changed task, rather moves all others -->
   </Cols>
   <Header id="ID" T="Task" S="Start" E="End" C="Complete" G="Gantt" D="Next"/> <!-- Column captions -->
   
   
   <!-- Use the next setting to fix the Gantt structure to two levels - Task / Data-->
   <!--Root CDef="Task" AcceptDef="Task"/>
   <Def>
      <D Name="Task" CDef="R" AcceptDef="R"/>
      <D Name="R" CDef="" AcceptDef=""/>
   </Def-->

   <!-- Shows count of incorrect dependencies and on click corrects them -->
   <Toolbar Formula="ganttdependencyerrors(null,1)" FormulaOnClick="CorrectAllDependencies" FormulaTip="Click to correct the dependencies"/>
   <Solid>
      <Topbar id='Project' Space='0' Panel='0' Cells='Base,Finish'
            
            BaseType='Date' BaseCanEdit='1' BaseWidth='80' BaseUndo='1' BaseLeft='5'
            BaseLabel='Baseline'
            BaseFormat="ddd M/d/yyyy"
            BaseEditFormat='M/d/yyyy'
            BaseFormula='Grid.GetGanttBase()'
            BaseOnChange='Grid.SetGanttBase(Value,2);'
            BaseHtmlPrefixFormula='Grid.Cols.G.GanttBase===""?"&lt;span style=&apos;color:gray;&apos;>":"&lt;span>"'
            BaseHtmlPostfix='&lt;/span>'
            BaseTip='Starting date of the whole project.&lt;br>No task should start before it.&lt;br>It is also used when correcting dependencies.'
              
            FinishType='Date' FinishCanEdit='1' FinishWidth='80' FinishUndo='1' FinishLeft='5'
            FinishLabel='Finish date'
            FinishFormat="ddd M/d/yyyy"
            FinishEditFormat='M/d/yyyy'
            FinishFormula='Grid.GetGanttFinish()-24*60*60*1000'
            FinishOnChange='Grid.SetGanttFinish(Value+24*60*60*1000);'
            FinishHtmlPrefixFormula='Grid.Cols.G.GanttFinish===""?"&lt;span style=&apos;color:gray;&apos;>":"&lt;span>"'
            FinishHtmlPostfix='&lt;/span>'
            FinishTip='Finish date of the whole project.&lt;br>If grayed, it is calculated from the last task.&lt;br>It is used to calculate critical path.'
            />
   </Solid>
</Grid>
