MetaTable.DisplayColumn Property

Definition

Gets the column that is used to display values when entries in this table are used as parents in foreign-key relationships.

C#
public System.Web.DynamicData.MetaColumn DisplayColumn { get; }
C#
public virtual System.Web.DynamicData.MetaColumn DisplayColumn { get; }

Property Value

The column that is used to display values when entries in this table are used as parents in foreign-key relationships.

Remarks

The column that is returned is selected in this order:

  1. The column that is specified by using the DisplayColumnAttribute attribute.

  2. The first string column that is not in the primary key.

  3. The first string column that is in the primary key.

  4. The first non-string column that is in the primary key.

  5. The first column.

Applies to

Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1