Back to Devexpress

ASPxGantt.ResourceAssignmentsDataSource Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-aspxgantt-81861592.md

latest2.0 KB
Original Source

ASPxGantt.ResourceAssignmentsDataSource Property

Specifies the data source from which the Gantt retrieves resource assignments.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public virtual object ResourceAssignmentsDataSource { get; set; }
vb
<DefaultValue(Nothing)>
Public Overridable Property ResourceAssignmentsDataSource As Object

Property Value

TypeDefaultDescription
Objectnull

The data source object.

|

Remarks

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

csharp
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

ASPxGantt - 'How To' Examples

ASPxGantt Class

ASPxGantt Members

DevExpress.Web.ASPxGantt Namespace