aspnet-devexpress-dot-web-dot-aspxgantt-dot-aspxgantt-16d7e6f2.md
Provides access to the object that contains a set of gantt’s properties mappings.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
public GanttMappings Mappings { get; }
Public ReadOnly Property Mappings As GanttMappings
| Type | Description |
|---|---|
| GanttMappings |
Provides functionality for mapping properties to appropriate data fields.
|
Mappings specify what field in a data source corresponds to an object’s task, dependency or resource property.
<dx:ASPxGantt ID="Gantt" runat="server" Width="100%"
KeyFieldName="ID" ParentFieldName="ParentID"
TasksDataSourceID="TasksDataSource"
DependenciesDataSourceID="DependenciesDataSource"
ResourcesDataSourceID="ResourcesDataSource"
ResourceAssignmentsDataSourceID="ResourceAssignmentsDataSource">
// ...
<Mappings>
<Task Key="ID" ParentKey="ParentID" Title="Subject" Start="StartDate" End="EndDate" Progress="PercentComplete" />
<Dependency Key="ID" PredecessorKey="ParentID" SuccessorKey="DependentID" DependencyType="Type" />
<Resource Key="ID" Name="Name" />
<ResourceAssignment Key="ID" TaskKey="TaskID" ResourceKey="TeamID" />
</Mappings>
</dx:ASPxGantt>
ASPxGantt - Data Binding and Modification
See Also