Skip to main content

ASPxGantt.DependenciesDataMember Property

Gets or sets the data source member which supplies dependencies data to the Gantt control.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.2.dll

#Declaration

[DefaultValue("")]
public virtual string DependenciesDataMember { get; set; }

#Property Value

Type Default Description
String String.Empty

The dependencies data source member.

#Remarks

The DependenciesDataMember property is useful when you bind dependencies to the data source that contains several lists or tables.

#Example

The following example illustrates how to connect the Gantt control to the specified data tables or lists in the data sources programmatically.

protected void Page_Init() {

    ASPxGantt gantt = new ASPxGantt();
    gantt.ID = "ASPxGantt1";
    form1.Controls.Add(gantt);

    gantt.TasksDataSource = "TasksDataSet";
    gantt.DependenciesDataSource = "DependenciesDataSet";
    gantt.ResourcesDataSource = "ResourcesDataSet";
    gantt.ResourceAssignmentsDataSource = "ResourceAssignmentsDataSet";

    gantt.TasksDataMember = "Tasks";
    gantt.DependenciesDataMember = "Dependencies";
    gantt.ResourcesDataMember = "Resources";
    gantt.ResourceAssignmentsDataMember = "ResourceAssignments";

    //...
    gantt.DataBind();
}
See Also