10136 : What is the SubCol field of TimeItem and how is it used?

Question

What is the SubCol field of TimeItem and how is it used?

Answer

The SubCol property of phDataEntity_GantTime and  phDataEntity_SchemaTime in the phGantTimePackage and on the GTP.TimeItem in GTP.NET controls sub-columns or, in the Gantt case, sub-rows of a single GanttRow.

The SubCol property is the one set by the CollisionDetection logic (when CollisionDetect=true) to visualize the time items side by side rather than on top of each other.

You may also use the SubCol property yourself if you turn off the CollisionDetecion. Setting the SubCol property to Zero is equal to “no subcolumn” and 1 is the first of the SubColumns. You can control the number of sub columns by setting GTP.GanttRow.SubColumns=x or in the phGantTimePackage you would use IphGantRow3.SetUseSubCols(x)

Leave a Reply