10638 : Is it possible to restrict the movement of a timeitem to specific rows?

Question

Is it possible to restrict the movement of a timeitem to specific rows? E.g. If I have a timeitem placed in row 1 and I have a total of 6 rows, but I will only allow the timeitem to be repositioned at row 2 and 3.

Answer

Sure! What you do is to implement the OnTimeItem_ChangeRow event and check if the e.NewGanttRow is one of your illegal rows. If so set e.Allow=false. Done.

Leave a Reply