Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
How to order the tasks in winganttview
posted

Hello

How to order the tasks in winganttview after loading from SQL database?

Regards

Essna

Parents
  • 23930
    Offline posted

    Hello Essna,

    The UltraGanttView will by default show its tasks in the order that they’ve been added to the Tasks collection of the UltraCalendarInfo of the gantt view. If that order is not the order you want you can change it using the SortedFields collection of the Tasks. For example the following line will sort the tasks based on their name in descending order:

    ultraCalendarInfo1.Tasks.SortedFields.Add(SortableTaskField.Name, SortOrder.Descending);

    If you want to know more about the sorting capabilities of the WinGanttView you should visit this link:

    http://help.infragistics.com/NetAdvantage/WinForms/2013.1/CLR4.0/?page=WinGanttView_WinGanttView_Sorting.html

    Please let me know if you have any additional questions.

Reply Children