Back to Devexpress

ResourceMappingInfo.ParentId Property

corelibraries-devexpress-dot-xtrascheduler-dot-resourcemappinginfo-4c9f6717.md

latest2.9 KB
Original Source

ResourceMappingInfo.ParentId Property

Gets or sets the data field which a resource’s ParentId property is bound to.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A String value that specifies the name of the bound data field.

|

Remarks

Use the ParentId property to bind a resource’s Resource.ParentId property to a data field. The data field is taken from the data source specified by the PersistentObjectStorage<T>.DataSource property of the ResourceStorage.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ParentId property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-gantt-view/CS/dxT183299/Form1.cs#L63

csharp
mappings.Caption = "Name";
mappings.ParentId = "ParentId";

winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L60

vb
mappings.Caption = "Name"
mappings.ParentId = "ParentId"

See Also

ResourceMappingInfo Class

ResourceMappingInfo Members

DevExpress.XtraScheduler Namespace