GTP.NET FAQ 10783
How can I sort the Gantt rows? Please note that this article refers to the GTP.NET
I have to sort data from a column that is date(initial date) in my Gantt.ASP
How can I sort the Gantt rows?
I have to do this when my gantt already have data, and I want to do this only with code(no click events)
Thanks for all.
To sort the content on GanttRows you must iterate every layer on each GanttRow and call Sort on the Layer that calls the collectionbase.innerlist.sort method. Implement your own comparer to sort. Do not use if this list is databound, if that is so, you should sort the datasource instead.
To Sort GridNodes you call Gantt.GridStructure.RootNodes.Sort you can send in your own object implementing IComparer to sort on any criteria.
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
|(C) 1999-2010 PlexityHide.com
Grastensvagen 24, S-163 45 Spanga Sweden