PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10783


How can I sort the Gantt rows? Please note that this article refers to the GTP.NET
Jump to article- 2006-12-06 21:01:00 - Email plexityHide

Question

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)
I'm programming in VB.Net

Thanks for all.

Answer

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.

 

Google
WWW plexityHide GTP.NET FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ GTP.NET.SL and WPF

FAQ general

Testimonials

"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%"
Gaurav Patole,
WebTechDevelopers
More testimonials...




class="blk">PlexityHide.com
Grastensvagen 24, S-163 45 Spanga Sweden
E-mail: support@plexityhide.com