10254 : Setting top row in phGantTimePackage VCL

Question

Using the VCL-version of the ganttview how can I make a row of the gantt the toprow ? Or: why does the MakeSureRowInView (in the way like shown in the example below) not work ? Do additional properties to be set ?

_gantrow := phgant1.RowList.Rows[20];

phgant1.MakeSureRowInView(_gantrow);

Answer

If you are using the Grid option you can control the TopLeftCell like this
    Gantt.Grid.TopLeftCell…

Using the tree you go like this:
    Gantt.TreeView.TopItem…

The MakeSureRowInView(theGantRow:TGantRow) looks for time items on this row and changes the time settings so that they show.

Leave a Reply