All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxGantt.ResourceAssignmentsDataMember Property

Gets or sets the data source member which supplies resource assignments data to the Gantt.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

[DefaultValue("")]
public virtual string ResourceAssignmentsDataMember { get; set; }
<DefaultValue("")>
Public Overridable Property ResourceAssignmentsDataMember As String

Property Value

Type Default Description
String

String.Empty

The resource assignment data source member.

Remarks

The ResourceAssignmentsDataMember property is useful when you bind resource assignments 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