RadiantQ WPF Gantt
How to parse a task hierarchy?
Previous Topic  Next Topic 

How to parse the task hierarchy?


You can easily parse the task hierarchy once you get hold of the IActivity representing a task.


// IActivity Represents a task in the gantt's model.

IActivity activity = this.ganttControl.SelectedActivity;

// To access it's parent:

IActivity parent = activity.Parent;

// To access an activity's bound data source:

TaskInfo boundTask = ((DataBoundActivity)activity).DataSource as TaskInfo;

// This will give you the edited value.

string desc = boundTask.Description;



� RadiantQ 2009 - 2019. All Rights Reserved.