10834 : How can i get the Row-Number on gantt1_OnTimeItem_ChangeRow?

< ?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />Question

How can i get the Row-Number on gantt1_OnTimeItem_ChangeRow?

 

Answer

For the old row you follow e.TimeItem.GanttRow.GridNode.Index

For the new row you follow e.NewGanttRow.GridNode.Index

Mind you that the Index is the Index of the list of GridNodes (Grid.OwningCollection), if this node is a sub node you will get the index of the position within that child list.

Leave a Reply