Back to Devexpress

RepositoryItemLookUpEditBase.CascadingMember Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemlookupeditbase-69ff806a.md

latest2.7 KB
Original Source

RepositoryItemLookUpEditBase.CascadingMember Property

Gets or sets the name(s) of the foreign key field(s) by which the popup data source of the lookup editor is filtered. The field must be editable and accept new values (read-only fields are not supported).

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

The foreign key field name(s). The field must be editable and accept new values (read-only fields are not supported).

|

Remarks

The CascadingMember property is used together with the LookUpEditBase.CascadingOwner property to filter of the lookup editor based on a value of another lookup editor. Note that these properties are only supported for standalone lookup editors.

Manually setting the CascadingMember property can be optional in some cases, as the lookup editor provides a built-in algorithm for identifying foreign key fields.

If multiple foreign key field names need to be specified with the CascadingMember property, delimit the names with the ‘;’ character (e.g., “CategoryID;ProductID”).

See Cascading Lookups to learn more.

See Also

CascadingOwner

PopupFilter

Cascading Lookups

RepositoryItemLookUpEditBase Class

RepositoryItemLookUpEditBase Members

DevExpress.XtraEditors.Repository Namespace