10184 : How to select the item (row) in the grid that corresponds to an item in the gantt area that is selected ? (i.e in the same row)

Question

How to select the item (row) in the grid that corresponds to an item in the gantt area that is selected ? (i.e in the same row)

Answer

In GTP.NET you implement the event Gantt.OnTimeItem_SelectionChanged and put some code there like:

if (e.TimeItem.Selected)
  Gantt.Grid.GridStructure.FocusedCell=e.TimeItem.GanttRow.GridNode.GetCell(0);

In phGantTimePackage the event is called IphGantX3.OnSelectionChangedGantTime, and the code would look like this

if (theDataEntity.Selected)
  IphGantX3.GridCellFocusedY=(theDataEntity.Row.TreeNode as IphDataEntity_Tree3).GridRowIndex;

Leave a Reply